开发者

How to "do not display" the (confirmation) delete button on an UITableView when deleting?

开发者 https://www.devze.com 2023-03-06 15:17 出处:网络
I can not find the anws开发者_开发百科er over the net, I don\'t know even it\'s possible to do this,

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?

How to "do not display" the (confirmation) delete button on an UITableView when deleting?


- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
    // Detemine if the user can edit the comment.
    if (something) {
        return UITableViewCellEditingStyleDelete;
    }
    return UITableViewCellEditingStyleNone;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消