Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

caldwelljason

macrumors member
Original poster
Jul 9, 2008
44
2
I am trying to enable my users to sort a list of items. The only way to get the grabber bars in a UITableView is to set it into edit mode.

Problem is, in edit mode--even when I tell it I don't want to allow deletes--the list allocates space on the left side for the delete icon. So I have a big dead zone on the left off my list.

The list is in grouped mode, if that matters.

How can I get into a state that will allow me to reorder, without allocating delete-icon space?

I have tried setting the showsReorderControl flag on my cells, but that doesn't seem to do anything if I don't enter edit mode. And 'canMoveRowAtIndexPath' doesn't get called unless the table is in edit mode.
:confused:
 
I imagine you found this already, but take a look at

Code:
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath;

on the UITableViewDelegate protocol...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.