delete in tableView
<p>I just add this methods in .h file :</p>

<pre><code>- (IBAction)EditTable:(id)sender;
</code></pre>

<p>- (IBAction)DeleteButtonAction:(id)sender;</p>

<p>and in .m file :</p>

<ul>
<li><p>(IBAction)DeleteButtonAction:(id)sender{
[tableList removeLastObject];
[Table reloadData];
}</p></li>
<li><p>(IBAction) EditTable:(id)sender{</p>

<p>if(self.editing)</p>

<p>{</p>

<pre><code>[super setEditing:NO animated:NO];
[Table setEditing:NO animated:NO];
[Table reloadData];
[self.navigationItem.leftBarButtonItem setTitle:@"Edit"];
[self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStylePlain];
</code></pre>

<p>}</p>

<p>else
{</p>

<pre><code>[super setEditing:YES animated:YES];
[Table setEditing:YES animated:YES];
[Table reloadData];
[self.navigationItem.leftBarButtonItem setTitle:@"Done"];
[self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStyleDone];
</code></pre>

<p>}</p></li>
</ul>

<p>}</p>

<p>when I run the program and click the delete button (red button) the program is stop !
whats the problem ? please any help ?</p>

<hr>

<p>you are evil :( </p>

<p>OK, again my code in .h file is :</p>

<pre><code>- (IBAction)EditTable:(id)sender;
- (IBAction)DeleteButtonAction:(id)sender;
</code></pre>

<p>and in .m file is :</p>

<pre><code>- (IBAction)DeleteButtonAction:(id)sender{
    [tableList removeLastObject];
    [Table reloadData];
}
- (IBAction) EditTable:(id)sender{

  if(self.editing)

{
[super setEditing:NO animated:NO];
[Table setEditing:NO animated:NO];
[Table reloadData];
[self.navigationItem.leftBarButtonItem setTitle:@"Edit"];
        [self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStylePlain];
}
else
{
[super setEditing:YES animated:YES];
[Table setEditing:YES animated:YES];
[Table reloadData];
[self.navigationItem.leftBarButtonItem setTitle:@"Done"];
[self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStyleDone];
} }  
</code></pre>

<p>when I run the program and click the delete button (red button) the program is crash ! whats the problem ? please any help ?</p>
