UINavigationBar manages the UINavigationItem stack, as the UINavigationController manager, the UIViewController s stack. To set what is visible directly, you must use either pushNavigationItem:animated: or setItems:animated: using the navigationItem of the view controller on which you want to display the panel.
eg:
self.navigationItem.title = @"A custom title"; [self.navigationBar pushNavigationItem:self.navigationItem animated:NO];
The above code in which you have a navigationBar property that refers to a standalone navigation bar.
If you do not want to manage it yourself, you can do as mplappert suggested and insert a view controller (without a standalone UINavigationBar ) into the UINavigationController and present a navigation controller instead of your view controller.
codelark Jan 12 '11 at 16:22 2011-01-12 16:22
source share