Delete Cell without edit button in table view?
<p>if i press the particular cell(edit button's action will be taken without pressing edit button) in table view. wiil you answer please?
th following code gives error...</p>

<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{
    NSArray *deleteIndexPaths =[NSArray arrayWithObjects: 
    [NSIndexPath indexPathForRow:indexPath.row inSection:0],nil]; 
    UITableView *tv = (UITableView *)self.view;
    [tv beginUpdates];

   [tv deleteRowsAtIndexPaths:deleteIndexPathswithRowAnimation:UITableViewRowAnimationFade];
   [tv endUpdates];

}
</code></pre>
