tholub
tholub

Reputation: 73

How to not display "-" delete button when in editing mode of UITableView?

I want to enable deleting ONLY on swipe gesture in editing mode of UITableView.

How to delete round "-" button from cells and still have that gesture recognized? is that possible?

i can disable that icon when cell editing style is set to UITableViewCellEditingStyleNone but it's disable also Swipe-To-Delete gesture

Upvotes: 3

Views: 1995

Answers (1)

Wain
Wain

Reputation: 119031

Return UITableViewCellEditingStyleNone from the tableView:editingStyleForRowAtIndexPath: delegate method. This will suppress the buttons but the row will still be editable.


You may also want to change the values of editingAccessoryType and / or editingAccessoryView in your cell subclass to get the exact functionality you're after.

Upvotes: 5

Related Questions