Deletion button appearing below section index in UITableView
-
03-07-2019 - |
Question
I have my UITableView set up (in the standard way) to allow deletion on swipes. Whenever I have a sectionindex showing, however, the "Delete" button appears /below/ the section index:
Perhaps I'm missing something obvious?
I've tried setting the selected cell to be less wide in willBeginEditingRowAtIndexPath, but this removes the seperator line below the cell too (i.e. the line is part of the cell, so doesn't draw in the area outside the cell's new bounds).
Solution
The solution we used is to remove the index when the table is in editing mode (the other option is, obviously, don't use both table features in the same table).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow