title: How to give barbuttonitem action?
body: <p>I want to bring up the .nib of "TableViewController" when a done button is clicked on my UIToolBar. But the below isn't allowing the click to bring up a new view. How do I rectify this? Please show me where I went wrong and what should be replaced and why.</p>
  
  <pre><code>//Here's the selector in my overlay. 
  UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:
  UIBarButtonSystemItemDone target:self action:@selector(doneButtonPressed)];
  
  //Here's how I made my action. Btw, the uitoolbar has no nib, it's an overlay on the
  //(camera mode).
  
  -(void)doneButtonPressed {
  TableViewController *tableView = [[TableViewController alloc]
  initWithNibName:@"TableViewController" bundle:nil];
  tableView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
  [self presentModalViewController:tableView animated:YES];
  }
  
  
  //Yet nothing happens when I click on my done button on my overlay. And I've made sure
  //   i've imported .h frameworks correctly too.
  </code></pre>
  
  <p>Suppose you were to bring up a nib from a barbuttonitem which is on a UItoolbar overlay. How would you do it?</p>
  
  <p>I was told that to make it function properly I would have to add [barButtonItem addTarget:self action:@selector(doneButtonPressed) forControlEvents:UIControlEventTouchUpInside];  . </p>
  
  <p>But if I add it I get this:</p>
  
  <pre><code>UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:
  UIBarButtonSystemItemDone addTarget:self action:@selector(doneButtonPressed)
  forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>Which results in me getting an error reading "instance method' - initWithBarButtonSystemItem:target:action:forControlEvents:' not found (return type defaults to 'id')"</p>
  
  <p>Instead of showing me only the correct additive, please show me the solution in addition to the code I've written here.</p>