开发者

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?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜