Reorder cells in a UITableView without displaying a "delete" button
Posted
by iter
on Stack Overflow
See other posts from Stack Overflow
or by iter
Published on 2010-06-12T07:01:40Z
Indexed on
2010/06/12
7:13 UTC
Read the original article
Hit count: 758
iphone
|uitableview
I want to be able to reorder cells in a table, but not to delete or insert them.
I want a picture like this:
This image appears in Apple's Table View Programming Guige, but the code samples there produce a table with red "delete" buttons when the table goes into editing mode.
I can set editingStyleForRowAtIndexPath
to UITableViewCellEditingStyleNone
and that makes the delete buttons go away, but the rows are still indented as if to make room for these buttons.
© Stack Overflow or respective owner