title: change Table to Edit mode and delete Rows inside a normal ViewController
body: <p>I just inserted a table into a normal UIViewController and connected the delegate and source components with the file's owner. Everything works fine when i insert data into the table rows. but now i am trying to find out how rows can be deleted.</p>
  
  <p>I just looked at a lot of other posts, but couldn't find the right solution.</p>
  
  <p>I tried to insert a asseccory button for each row in the table:</p>
  
  <pre><code>cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
  </code></pre>
  
  <p>i even found the method that will be called when the accessory button is pressed:</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{
  
      NSLog(@"Accessory pressed");
  
      //[self tableView:tableView willBeginEditingRowAtIndexPath:indexPath];
  
      //[self tableView:nil canEditRowAtIndexPath:indexPath];
      //[self setEditing:YES animated:YES];
  }
  </code></pre>
  
  <p>Inside the log the message is printed, but no one of the methods that i tried to call (the commented one) did change the view to the edit mode. How can i solve this problem?</p>
  
  <hr>
  
  <p>Here is a Screenshot of the UIViewController. I haven't integrated a navigationController.</p>
  
  <p><img src="https://i.stack.imgur.com/7lyru.png" alt="enter image description here"></p>