Ios 当弹出回ViewController时,UITableView中的单元格保持高亮显示
我有一个Ios 当弹出回ViewController时,UITableView中的单元格保持高亮显示,ios,objective-c,cocoa-touch,uitableview,Ios,Objective C,Cocoa Touch,Uitableview,我有一个ViewController和UITableView。我选择一个单元格移动到另一个ViewController,但当我使用[self.navigationController popToRootViewControllerAnimated:NO]弹出时我选择的单元格仍以蓝色突出显示。取消高亮显示的唯一方法是选择另一个单元格。如何清除所选内容中突出显示的蓝色?在didSelectrowAtIndexPath中使用取消rowatindexpath:方法 [tableView deselec
ViewController
和UITableView
。我选择一个单元格移动到另一个ViewController
,但当我使用[self.navigationController popToRootViewControllerAnimated:NO]弹出时代码>我选择的单元格仍以蓝色突出显示。取消高亮显示的唯一方法是选择另一个单元格。如何清除所选内容中突出显示的蓝色?在didSelectrowAtIndexPath
中使用取消rowatindexpath:
方法
[tableView deselectRowAtIndexPath:indexPath animated:YES];