iPhone UITableView cells stay selected

前端 未结 7 1253
[愿得一人]
[愿得一人] 2020-12-28 11:50

in my UITableView sometimes cells stay selected after touching. Because it happens only occasionally, I\'m not able to reproduce the problem.

Any hints? Maybe it has

7条回答
  •  渐次进展
    2020-12-28 12:36

    If you are using a UITableViewController you can use:

    self.clearsSelectionOnViewWillAppear = YES;
    

提交回复
热议问题