The iPhone maps application has a toolbar at the bottom of the map (it contains the Search / Directions control and others). When you move from the map screen by clicking on the leader, the toolbar opens with a map view, leaving the next view (table controller) without a toolbar.
I tried to do the same with [self.navigationController setToolbarHidden:YES animated:YES]the second view controller, but this gives a weird, plugin animation of the toolbar while the map display shifts to the left.
Using [self.navigationController setToolbarHidden:YES]in viewDidLoadalso causes a bad effect (this makes the panel disappear the moment the push animation starts, leaving an ugly empty space).
I assume the answer to this question is to use the nib file, but I would prefer to do it programmatically (if possible).
How can I make the toolbar “stick” to the map view and slip out with it when I click on the new view controller? Thank.
Gourmet Haus Staudt http://img.skitch.com/20100518-xfubyriig48d3ckaemjg2ay8q.jpg
source
share