Fry
Fry

Reputation: 6275

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

Upvotes: 6

Views: 2189

Answers (2)

rmp
rmp

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

Related Questions