Declan Software

 The Declan Software Blog

 

Main menu:

Japanese
Korean
French
German
Italian
Chinese
Russian
Arabic
Spanish
Indonesian
Brazilian

Site search

Declan Software Blog RSS Feed RSS Feed

Categories

Archive

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.