Fry Fry - 11 days ago 8
iOS Question

iOS reordering table view rows without delete button

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 ?

enter image description here

rmp rmp
Answer

You will need to add this delegate method to not show the delete button

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewCellEditingStyleNone;
}