UINavigationController Set Title - iPhone


 

UINavigationController Set Title - iPhone

This UINavigation example exhibits how to set Title to the Navigation Bar. The reason behind setting title for UINavigation bar is to present the data in more efficient and user convenient way.

This UINavigation example exhibits how to set Title to the Navigation Bar. The reason behind setting title for UINavigation bar is to present the data in more efficient and user convenient way.

UINavigationController Set Title - iPhone

This UINavigation example exhibits how to set Title to the Navigation Bar. The reason behind setting title for UINavigation bar is to present the data in more efficient and user convenient way. If the Title is specific, user can easily navigate through the application.

For example - On selecting the item from the list, it shows you the detail view of that item and if that detail view has the same time on the top of the navigation bar as it has in the item list.. makes easy to get it. Isn't it? That is the only reason why we set Title for UINavigation Items. To set the title all you need to do is just copy and paste the given code in ViewDidLoad method and build your application.

self.navigationItem.title = @"List View";

Images from Example...


Apart from it you can do lots of things to UINavigation bars such as .. adding buttons(back & edit), setting images etc..

Download Code

Ads