0

当用户单击公开按钮时,我执行一个推送新视图的 segue

控制器到当前导航控制器。问题是当我弹出推

控制器到达 UITableView 我发现披露按钮仍然是黑暗的

蓝色的!!!see attached image.

在此处输入图像描述

4

2 回答 2

2

你有没有尝试过这个,希望它会对你有所帮助。

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

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

} 
于 2013-04-02T05:13:36.320 回答
0

那是因为单元格被选中了。选中状态默认不清除。添加到viewWillAppear方法:

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

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

于 2013-04-02T00:34:39.630 回答