Christian Stewart
Christian Stewart

Reputation: 15519

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

Upvotes: 1

Views: 173

Answers (2)

Christian Stewart
Christian Stewart

Reputation: 15519

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

Upvotes: 1

Joshua
Joshua

Reputation: 15500

Just don't implement the commit editing style method.

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

Upvotes: 0

Related Questions