Hello, my problem is quite simple. I have a UITableView
with a couple of cells. Some of them can be deleted (but not necessarily all of them), but all of them can be movable.
I do not understand how to realize this through the iOS SDK. Using a combination of tableView:canMoveRowAtIndexPath:
and tableView:canEditRowAtIndexPath:
I am only able to set a cell as deletable, and eventually movable, but not vice versa. I would like to set a cell as movable but not necessarily deletable. Is this possible?
-(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleNone;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With