title: Adding Toolbar to Navigation Controller
body: <p>Sup fellas, so I have a navigation controller with a table view to which I am trying to add a tool bar, however, the way I have implemented it causes the very last row in the table to be hidden behind the tool bar. I will try to illustrate via pictures:</p>
  
  <p>Table view scrolled to the bottom without tool bar:</p>
  
  <p><img src="https://i.stack.imgur.com/7vBWw.png" alt="alt text"></p>
  
  <p>Table view scrolled to the bottom with tool bar(notice how the last "Vendor" row is concealed behind the tool bar):</p>
  
  <p><img src="https://i.stack.imgur.com/8bWgl.png" alt="alt text"></p>
  
  <p>I was following <a href="http://www.eduoliveros.com/2009/02/navigation-controller-with-toolbar.html" rel="nofollow noreferrer" title="this">this</a> guide and this is what I ended up doing for my implementation:</p>
  
  <p><img src="https://i.stack.imgur.com/xlEXs.png" alt="alt text"></p>
  
  <p>As you can see I have a "View" instead of "Window" to work with. Here is the code I have for displaying the tool bar:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
   [self.view addSubview:self.navigationController.view];
   [self.view addSubview:toolbar];
   [self.navigationController.view setFrame:self.view.frame];
  }
  </code></pre>
  
  <p>It seems to me that I need to adjust the frame of the navigation controller frame to compensate for the tool bar being at the bottom. This is where I am stuck. How would I go about doing this? Any help appreciated! </p>