iPhone Development 101

iPhone 101

Code Tips

Resources

Links

Follow

Mailing ListTwitter

More

iPhone Development 101: User Interface: UINavigationController:
How to set the UINavigationBar's title

In your view controller's viewDidLoad method, call the setTitle method:

[self.navigationItem setTitle:@"Type Tester"];

You can also set the title in Xcode/Interface Builder by double-clicking on the nav bar's title area and typing in the title. Or select the navigation bar and view the attributes inspector on the right panel:

Additional References


TopHome