title: iOS. Call navigation controller methods within a UIToolbar subclass
body: <p>How to perform this better. For example, I have a button in my toolbar which must perform something like this:</p>
  
  <pre><code>[self.navigationController popViewControllerAnimated:YES];
  </code></pre>
  
  <p>Any ideas? Except of:</p>
  
  <p>1)Defining the toolbar and it items inside the UIViewController subclass. It works for current view only.</p>
  
  <p>2)Creating a pointer to navigation controller inside the toolbar.</p>