I believe tableview cannot scroll in iOS 11

I found that my UITableView cannot scroll in iOS 11, so I did some tests in the "cell for row" delegation method:

  • when i set cell.userInteractionEnabled to NO , scrolling works
  • When I set cell.contentView.userInteractionEnabled to NO , it doesn't

My custom view is in cell.contentView , so I don't know how to fix it ...

+7
objective-c uitableview ios11
source share
1 answer

I find a solution:

  self.tableView.delaysContentTouches = YES; 

when I change it to YES, the tableView may work as before

+15
source share

All Articles