Rectangle 27 0

ios Conform to protocol in ViewController, in Swift?

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { // insert code}

func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { // insert code

I noticed the protocol method of UITableViewDataSource changed a little bit and sounded the same conform to protocol error which worked fine in beta6.

If anyone has implemented these methods and still gets the error, I got rid of it doing a Clean. It was annoying me for a while but got the error go to away

These are the required methods to be implemented according to the UITableViewDataSource protocol:

You might want to re-check the difference or re-implement the delegate method that you thought you just implement.