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:
Table view scrolled to the bottom without tool bar:

Table view scrolled to the bottom with tool bar(notice how the last "Vendor" row is concealed behind the tool bar):

I was following this guide and this is what I ended up doing for my implementation:

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:
- (void)viewDidLoad {
[super viewDidLoad];
[self.view addSubview:self.navigationController.view];
[self.view addSubview:toolbar];
[self.navigationController.view setFrame:self.view.frame];
}
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!
If you add the toolbar to the navigation controller, it will automatically resize itself. Just check this box in IB.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With