Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent UITableView from reserving space at the left of cell when editing is turned on?

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.

like image 519
Yuriy Zhyromskiy Avatar asked Feb 22 '10 14:02

Yuriy Zhyromskiy


1 Answers

// UITableViewDelegate

- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
}
like image 150
Moss Avatar answered Oct 09 '22 12:10

Moss