title: How can I add insert and delete buttons provided by UITableView setEditing?
body: <p>I want to add insert and delete buttons for individual cells in a table view.</p>
  
  <p>The following code is working fine for deleting for insertion also I want the button not in navigation.</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      card = [[NSMutableArray alloc]initWithObjects:@"card1",@"Card2",@"card3",@"card4",nil];
      self.navigationItem.leftBarButtonItem = self.editButtonItem;
      UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addNewItem)];
      self.navigationItem.rightBarButtonItem = rightButton;
  
  
      // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
      // self.navigationItem.rightBarButtonItem = self.editButtonItem;
  }
  - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  
      if (editingStyle == UITableViewCellEditingStyleDelete) {
          // Delete the row from the data source.
          [card removeObjectAtIndex:indexPath.row];
          [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
      }   
      else if (editingStyle == UITableViewCellEditingStyleInsert) {
          // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.
      }   
  }
  </code></pre>