tableview - unrecognized selector didSelectRowAtIndexPath

前端 未结 1 864
遇见更好的自我
遇见更好的自我 2020-12-19 11:33

I have been having an issue with my app crashing on selecting something in the tableView. This is not 100% reproducible, but it happens relatively often.

What happen

相关标签:
1条回答
  • 2020-12-19 11:36

    The call to super in tableView:didSelectRowAtIndexPath: is unnecessary. If I remember correctly, UITableViewController does not provide a default implementation of that method. Thus, your call to super results in a crash.

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