views:

207

answers:

2

I'm set editing mode for UITableView to have a possibility of cell reordering. UITableViewCellEditingStyleNone is returned by editingStyleForRowAtIndexPath: method for every cell, but it reserve some area on the left of cell. Is it possible to prevent such an area reserving, because I'm not need an insert or delete icon on left? In short, i want have a cell that occupate all available area and still can be reordered.

A: 

Set this to like 2 or 3

tableView:indentationLevelForRowAtIndexPath:

Jaba
+1  A: 

See the docs: You can set a boolean on the cell to make it not indent. Just add

cell.shouldIndentWhileEditing = NO;

to wherever you create your cell.

coneybeare
Thanks a lot, it works. Miss that option somewhat :( I'm use- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath{ return NO;}because i need it for all cells.
Yuriy Zhyromskiy