我有一个表格 View
当我点击单元格时一切都很好
但是,当我将手指从手机上移开时,单元格仍保持选中状态
当用户停止触摸给定单元格并且不触摸另一个单元格时,如何使其取消选择
最佳答案
简单:
在此方法中:didSelectRowAtIndexPath
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
UIActionSheet *photoPicker ;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
关于ios - 如何使自动取消选择tableview单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19488526/