http://snowyshell.blog.163.com/blog/static/220914034201352523922620/
1.在一个基于导航的UIViewController中,选中视图上UITableView的cell后,push到下一个页面后,再pop回来,cell还是选中状态,没有取消,这时,在viewWillAppear方法中调用此方法即可:
[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:YES];
但是如果这个视图控制器是继承自
{
[self performSelector:@selector(deselect) withObject:nil afterDelay:0.5f];
}
- (void)deselect
{
}