Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 当弹出回ViewController时,UITableView中的单元格保持高亮显示_Ios_Objective C_Cocoa Touch_Uitableview - Fatal编程技术网

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];