Hide Delete Button While Keeping Swipe to Delete Functionality

Ran into an issue in iOS 7 were the ImageView in a UITableViewCell would resize and cover the delete button after pressing the delete button in editing mode. Here was the workaround I found to just disable the “-” delete button in UITableView’s editing mode but maintain its swipe to delete functionality, just drop this snippet in your TableView’s controller:

– (UITableViewCellEditingStyle)tableView:(UITableView *)TableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

{

    if (self.editing)

    {

        return UITableViewCellEditingStyleNone;

    }    

    return UITableViewCellEditingStyleDelete;

}