Fry Fry - 1 year ago 82
iOS Question

iOS reordering table view rows without delete button

I've to reordering

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
. Is there a way for reordering rows even if table is not in editing mode ?

enter image description here

rmp rmp
Answer Source

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

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewCellEditingStyleNone;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download