Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you enable UITableViewCell reorder without removing control with "setEditing " method?

When I use [tableview setEditing:YES animated:YES]; to enable UITableViewCell reorder, the remove control appears too. How can I prevent that ?

like image 965
Anthony Avatar asked Dec 07 '22 17:12

Anthony


1 Answers

Implement -tableView:editingStyleForRowAtIndexPath: in the table view delegate and return UITableViewCellEditingStyleNone.

like image 75
kennytm Avatar answered Jan 04 '23 22:01

kennytm