Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I find a tableview cannot scroll in iOS 11

I found my UITableView can't scroll in iOS 11, so I did some tests in the "cell for row" delegate method:

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

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

like image 646
ice0gaia Avatar asked Sep 19 '17 08:09

ice0gaia


1 Answers

I find the solution:

    self.tableView.delaysContentTouches = YES;

when I change it to YES, tableView can work like before

like image 190
ice0gaia Avatar answered Oct 21 '22 16:10

ice0gaia