Keep a UITableView section from showing up as editing while the table is in edit mode

681 views Asked by At

I've got 2 sections in a UITableView. The tableview needs to stay in edit mode, but only the first section is editable. Specifically, I want the second section to display as it would if the table were not in edit mode (tableviewcells are their original widths in stead of the left side being in line with the cells of the first (editable) section, which are aligned right, about 20% less wide than when in non-editing mode, and have the editing (-) icon to their left). NOTE: the problem here is only with the appearance of the cells, not with the functional aspect of editable vs. non-editable cells.

Anyone know if this is possible within a single UITableView?

1

There are 1 answers

1
Sixten Otto On BEST ANSWER

Have you implemented tableView:canEditRowAtIndexPath: in your UITableViewDataSource? That should give you the control you're looking for.