简体   繁体   中英

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...

I find the solution:

    self.tableView.delaysContentTouches = YES;

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM