title: Using edit button in navigation bar for a sub table view
body: <p>Hi I have a <code>tableView</code> inside my view. But I want the edit in the navigation bar to work for the tableView. Could you please tell me how to do this?</p>
  
  <p>I have the navigation bar set up for the main view and have the <code>tableView</code> set up as well.</p>
  
  <p>I made a create navigation bar method:</p>
  
  <pre><code>- (UINavigationBar *)createNavigationBar
  {
  UINavigationItem *title = [[UINavigationItem alloc] initWithTitle:@"Task Manager"];
  UINavigationBar *new = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
  
  UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:nil];
  title.leftBarButtonItem = addButton;
  [new pushNavigationItem:title animated:YES];
  UIColor *color = UIColorFromRGB(0xff8c00); // Dark orange
  new.tintColor = color;
  return new;
  }
  </code></pre>
  
  <p>I have the </p>
  
  <pre><code> - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p>set up as well.</p>
  
  <p>I basically need the red circles to appear for the sub-tableView when i tap the edit button in main navigation bar.</p>
  
  <p>I'm sorry if I wasn't clear. Please ask me if you need any clarification.</p>
  
  <p>Thanks! :)</p>