Can I disable the UITableViewCell when entering edit mode?

When you enter edit mode for the UITableView (grouped, but I believe this applies to other types as well), the cells shrink to the right to accommodate the delete select buttons. For cells that I don't want to add / insert / remove any content, is there a way to stop this behavior? i.e. the width remains fixed.

I've tried setting the accessoriesType attribute on the UITableViewCellAccessoryNone, but that just makes the red minus circle disappear.

+2


source to share


1 answer


Use this in your TableViewController

Tableview: shouldIndentWhileEditingRowAtIndexPath:



Returns NO for cells that you do not want to be resized.

+5


source







All Articles