Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put a UITableView into editing mode without moving the TextLabel?

I've got a UITableView that is sortable, but that's it. Right now, I have all the cells set to UITableViewCellEditingStyleNone, but this still moves the TextLabel of the cell over to the right by 40 pixels. Is there anyway to get edit mode, and the sort icon at the right, without shifting the TextLabel over?

like image 331
Phil Kulak Avatar asked Dec 07 '25 06:12

Phil Kulak


1 Answers

What you want is - tableView: shouldIndentWhileEditingRowAtIndexPath: in the delegate. Have that return NO.

like image 61
Giao Avatar answered Dec 08 '25 21:12

Giao