xcode6 - 'override' can only be specified on class members -


i'm getting error message in relation 'override func'. seems saying 'viewwillappear' not class member.

can tell me how fix this?

import uikit import avfoundation import coredata  class soundlistviewcontroller: uiviewcontroller, uitableviewdatasource,     uitableviewdelegate {  @iboutlet weak var tableview: uitableview!     var audioplayer = avaudioplayer()     var sounds: [sound] = []  override func viewdidload() {     super.viewdidload()     // additional setup after loading view, typically nib.     self.tableview.datasource = self     self.tableview.delegate = self      override func viewwillappear(animated: bool) { // 'override' can specified on class members         self.tableview.reloaddata()     } } 


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -