2013-04-02 43 views
0

当用户点击披露按钮时,我执行一个搜索,将新视图推送到当前导航控制器。问题是,当我弹出推UITableView泄漏按钮错误

控制器去我发现的UITableView的披露按钮仍然处于黑暗

蓝色! see attached image.

enter image description here

+0

tableView是否在UITableViewController中? – danh

+0

是的,它在里面UITableViewController –

+0

你在代码中执行segue,在按钮的IBAction? – danh

回答

2

你有这个tryig,希望它会帮助你。

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { 

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone]; 
[tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone]; 

} 
+0

感谢它的工作! –

0

,由于所选单元格的。所选状态默认情况下不会被清除。添加到viewWillAppear方法:

[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:animated]; 

取决于你命名你的tableView属性。

+0

谢谢,但我之前做过,现在已经在我的代码中评论过了,因为它不能解决问题。 –