Objective-c – Deleting a tableview cell with swipe action on the cell

objective-cuitableview

Is it possible to delete a cell with swipe action on it ?

Or are there any other methods for doing so ?

Need Suggestions .

Thanks

Best Solution

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

   if (editingStyle == UITableViewCellEditingStyleDelete) {
     // Remove the cell
   }   
}