views:

28

answers:

0

I have a UITableViewController inside a navigationController inside a tabBarController; so far, so good. However, when the user clicks on a button on the navigation bar (at the top), I want to display a toolbar at the bottom of the screen with various actions that can be performed on the table. When I define an NSArray *toolbarItems and then call

[self setToolbarItems:toolbarItems animated:YES];

the toolbar appears, but sits on top of the existing tab bar. I'd like to replace the tab bar, instead. I can hide the tab bar with

self.navigationController.tabBarController.tabBar.hidden = YES;

but this just leaves a blank rectangle at the bottom of the screen where the tab bar used to be; the toolbar stays where it was, offset by the height of the (invisible) tab bar. How can I display the toolbar at the very bottom of the screen?