Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reordering UITableView sections on the iPhone by dragging (like reordering rows)

Is there anything currently in the SDK that allows for re-ordering of tableView sections? As in, move the entire section below or above an adjacent section? This is plausible with individual UITableViewCells. Haven't seen it done for sections though.

like image 543
Coocoo4Cocoa Avatar asked Jan 24 '23 14:01

Coocoo4Cocoa


1 Answers

Maybe not ideal but fairly simple so worth considering: Add Up/Down buttons to your section headers. Down on the first, Up on the last and Up and Down on all the others. Then respond to the button presses by programmatically re-ordering the table. Up moves the section up one and Down moves the section down one. Martin

like image 186
Martin Lockett Avatar answered May 20 '23 05:05

Martin Lockett