I am trying to add UINavigationController UIToolbarto the top of the view (under the navigation controller.
My idea is UITableViewController... so there is a deal with that. I am currently just positioning UIToolbarthat appears at the bottom of the view, where I want it to be displayed using
[self.navigationController.toolbar setFrame:CGRectMake(0, 60, 320, 30)]
this positions the toolbar in the right place, I would like it to appear, however there is a problem with where it is positioned, which I will explain.
When you install the toolbar UINavigationControllerthat you want to display, it is placed at the bottom of the view and pushes the UITableView up, so the toolbar does not cover the table view. However, when I change the position of the toolbar, the table view still thinks that the toolbar is at the bottom of the screen, which means that the toolbar does not correspond to the flash at the bottom of the screen, as I would also like.
So my question is, how can I make the toolbar appear directly below the navigation controller panel and push tableview down abit to place the toolbar in its new position.
I hope all this makes sense. Any help I would like to do than earlier and below is the current code that I use (everything will be basic, I still wonder what is happening behind the scenes to make this happen).
- (void) viewDidLoad
{
[self.navigationController setToolbarHidden:NO animated:YES];
[self.navigationController.toolbar setFrame:CGRectMake(0, 60, 320, 30)];
self.navigationController.toolbar.tintColor = [UIColor lightGrayColor];
}
Update
this is currently what the toolbar does with my table view
