title: How to delete row from table view?
body: <p>I have a table view, data were retrieved from database and display in the table rows.</p>
  
  <p>I have a remove button at the top navigation bar from removing table row.</p>
  
  <p>When button is tapped,  a red circle delete icon will appear.</p>
  
  <p>After I select delete, it gave me and error call "Program received signal SIGABRT" at the [tableViewDelete rows......]
  This is my code.</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
  {
        if (editingStyle == UITableViewCellEditingStyleDelete) 
        {              
             Object = [array objectAtIndex:indexPath.row];
             [ClassA ClassAMethod:[appDelegate getDBPath] :Object.ID];
             [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        }   
  }
  </code></pre>
  
  <p>How do I remove a row from the table view?</p>
  
  <p>Does anybody have any ideas or has anybody else achieved anything similar?</p>
  
  <p>Thanks</p>