UITableView doesn't keep row selected upon return

后端 未结 7 984
独厮守ぢ
独厮守ぢ 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:35

    Try

    [tableView deselectRowAtIndexPath:indexPath animated:NO];

    for deselecting a row and

    [tableView selectRowAtIndexPath:indexPath animated:NO];
    

    for highlighting the selected row.

提交回复
热议问题