iOS Question TableView Native Swipe to delete

narek adonts

Well-Known Member
Licensed User
Longtime User
I am trying to implement the native TableView fuction Swipe to delete

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
    // Return YES - we will be able to delete all rows
    return YES;

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
    // Perform the real delete action here. Note: you may need to check editing style
    //   if you do not perform delete only.
    NSLog(@"Deleted row.");
#End If

it doesn't give any error but when swiping nothing is happening.
Could you please advise how to implement this method correctly.