I just tried this, and your function header looks right (at least for English / left right). I added a colon between "shouldIndentWhileEditingRowAtIndexPath" and "(NSIndexPath *) indexPath" - see snippet below.
// Override to prevent indentation of cells in editing mode (in theory) - (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath { return NO; }
I also used the code below to stop the insert / delete functionality and enable line moving (easy to disable).
// Select the editing style of each cell - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { // Do not allow inserts / deletes return UITableViewCellEditingStyleNone; } // Override to support conditional rearranging of the table view. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the item to be re-orderable. return YES; }
Hope this helps.
source share