Invalid redeclaration of UITableViewDataSource method?

后端 未结 2 1804
离开以前
离开以前 2020-12-03 22:08

I\'m trying to implement the required methods of UITableViewDataSource but I\'m getting a weird error:

\"invalid redeclaration of \'tableview(_:cellF

相关标签:
2条回答
  • 2020-12-03 22:24

    You have this function twice in your class. Search for it and erase one of them.

    0 讨论(0)
  • 2020-12-03 22:42

    You might have the same function twice in your class. Remove one of them if that is the case.

    Sometimes your class extends a class that has the same function. Then, you must use "override" keyword to modify extended method, or call the method directly without defining in the class.

    0 讨论(0)
提交回复
热议问题