Thursday, 12 September 2013

Deleting UITableView item stops working on swipe on iOS 7

Deleting UITableView item stops working on swipe on iOS 7

Deleting UITableView item stops working on swipe on iOS 7. I use the
following code to remove items:
- (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
...
[tableView reloadData];
}
}
How to fix it?

No comments:

Post a Comment