Archive for 'iOS SDK Tips'
iOS SDK Tip #1 – Programatically set the title of UINavigationBar
How do I programatically set the title of a UINavigationBar? First declare IBOutlet UINavigationBar *myNavBar; in the UIViewController header file. And then in Interface Builder make a connection to “myNavBar” and the UINavigationBar object. Then in “- (void)viewDidLoad” add this: myNavBar.topItem.title = @” My NavBar Title”; Done.
Posted: December 14th, 2010 under iOS SDK Tips.
Comments: none
