开发者

Simple TableView Question

Is there any way to make it so that the user cannot swipe-to-delete items? I can't find this property anywhere!!

This is Objective-C xCode iOS开发者_开发百科

Thanks, Christian Stewart


Already figured it out. Just don't implement commit editing style.


Just don't implement the commit editing style method.

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜