所以我已经实现了
- (BOOL)tableView:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath
和
- (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath
但是我将如何触发一些东西来将 tableview 切换到编辑模式?就像您单击编辑时 iphone 中的消息一样,会出现删除图标。这听起来可能很基本,但我对此一无所知,而且有点紧急,任何线索都将不胜感激,谢谢。
最佳答案
[tableView setEditing:YES animated:YES];
关于iphone - UITableView 中的编辑模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4633392/