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
Post a Comment