didSelectRowAtIndexPath: not being called

前端 未结 14 2260
轻奢々
轻奢々 2020-11-29 18:57

I have a UITableView as a subview of my UIScrollVIew, which is the main view controlled by my MainViewController.

In MainView

14条回答
  •  再見小時候
    2020-11-29 19:19

    I had intermittent failure of didSelectRowAtIndexPath: being called on my custom cell press.

    I discovered that if I stopped calling [tableView reloadData] very often (10 Hz), and changed it to update every 2 seconds, almost every press would successfully call didSelectRowAtIndexPath:

    It seems like reloading the view blocks presses.

提交回复
热议问题