I'm trying to implement the required methods of UITableViewDataSource but I'm getting a weird error:
"invalid redeclaration of 'tableview(_:cellForRowAtIndexPath:)'"
However I'm not sure what the problem is. Here are the two relevant lines of code, the declaration of the class and conforming protocols/superclass:
class SubjectFormViewController: UIViewController,UITableViewDelegate,UITableViewDataSource
and the function declaration that's triggering the error:
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
You have this function twice in your class. Search for it and erase one of them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With