How to "do not display" the (confirmation) delete button on an UITableView when deleting?
I can not find the anws开发者_开发百科er over the net, I don't know even it's possible to do this,
Is it possible to do not have the delete button (at your right) in edition mode when you try to delete one item?
- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
// Detemine if the user can edit the comment.
if (something) {
return UITableViewCellEditingStyleDelete;
}
return UITableViewCellEditingStyleNone;
}
精彩评论