-
Notifications
You must be signed in to change notification settings - Fork 12
Home
yfujiki edited this page Jun 27, 2013
·
2 revisions
Welcome to the YFJLeftSwipeDeleteTableView wiki!
Just grab YFJLeftSwipeDeleteTableView.(h|m) and drop in your project.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
// Since you do not want stock delete button to appear, return NO here.
return NO;
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
// Operation to do when you delete cell.
// e.g., delete item from datasource, call [UITableView deleteRowAtIndexPaths:withRowAnimation].
}
It will give you left-swipe delete button like in iOS7 both for iOS6&7.