2012-09-04 29 views
0

我处于tableView编辑模式。我在tableView的左侧有一个复选标记。点击UITableViewCell编辑模式上的复选标记

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ 
return UITableViewCellAccessoryCheckmark; 
} 

didSelectRowAtIndexPath获取调用每次我在对号挖掘。

当我取消勾选复选标记(即再次点击单元格)didSelectRowAtIndexPath不是再次调用。

任何人都知道解决这个问题吗?

也许是每次按下复选标记时被调用的另一种方法?

回答

2

tableview:didSelectRowAtIndexPath:仅在单元格为时选中。如果您想知道何时取消选择,请使用:

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath 
+1

这是我需要的!该死。从来不知道这退出。 – Legolas

相关问题