UITableView doesn't keep row selected upon return

后端 未结 7 990
独厮守ぢ
独厮守ぢ 2020-12-17 21:05

i have several table views in my app. I am familiar with the usual behaviour of tables, that when you select a row and progress to a pushed view, it turnes blue, then when y

7条回答
  •  旧巷少年郎
    2020-12-17 21:33

    Use this piece of code in the end of didSelectRowAtIndexPath delegate method of table view,

    [tableView deselectRowAtIndexPath:indexPath animated:NO];
    

提交回复
热议问题