我有一个带有 UITableView
的 ViewController
。我选择一个单元格移动到另一个 ViewController
但是当我使用 [self.navigationController popToRootViewControllerAnimated:NO];
我选择的单元格仍然以蓝色突出显示.取消突出显示它的唯一方法是选择另一个单元格。如何清除选择时突出显示的蓝色?
最佳答案
在 didSelectrowAtIndexPath
左右使用 deselectRowAtIndexPath:
方法。
[tableView deselectRowAtIndexPath:indexPath animated:YES];
关于ios - 弹出回 ViewController 时,UITableView 中的单元格保持突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14446013/