Reputation: 633
I am trying to use the the dragging functionality that UITableView offers while in editing mode to rearrange some custom views in the cell.contentView. I am successfully getting editing mode turned on after a long press on the cell and turned off following a reorder.
Here is a picture of how I have things set up: http://cl.ly/image/081k3G0A3f2I
The problems I have are:
Help with this would be appreciate. Thanks.
Upvotes: 0
Views: 206
Reputation: 80265
Yes, you can customize the look of the drag controls. Try overriding layoutSubviews
. In that method, check for editing status and draw /position your elements accordingly.
Upvotes: 1
Reputation: 318804
You can't get rid of the drag control if you have enable row reordering. The API does not allow any customization of row reordering. The only solution would be your own custom table type view.
You can get rid of the delete control. Simply return UITableViewCellEditingStyleNone
from the tableView:editingStyleForRowAtIndexPath:
delegate method.
Upvotes: 0