Reputation: 6275
I've to reordering UITableView
rows without show the default red minus button because I need to show my custom image and I don't need to remove cell from UITableView
. Is there a way for reordering rows even if table is not in editing mode ?
Upvotes: 6
Views: 2189
Reputation: 3513
You will need to add this delegate method to not show the delete button
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewCellEditingStyleNone;
}
Upvotes: 12
Reputation: 2294
I think, you should check out the followings: https://www.cocoacontrols.com/controls/reordertableviewcontroller https://www.cocoacontrols.com/controls/reorderabletableview
Upvotes: 1