Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md

README.md

id title sdk
98BFE003-F1B3-D4FF-30FF-FEBF63C83020
Change the Nav Bar Title

This recipe shows how to change the title displayed in a navigation bar.

Recipe

To set the text displayed in the navigation bar, set the Title property of the UIViewController:

NavigationItem.Title = "Custom Title";

Additional Information

The Title text can also appear in other places in the UI:

  • If your UIViewController has been pushed onto a UINavigationController stack, the Title will appear in the ‘back’ button that returns to it.
  • If your UIViewController has been added to a UITabBarContoller the Title will be used as the tab’s display text (if both Title and TabBarItem.Title are assigned, whichever is set last overrides the other).

If you dynamically change the title as your app runs, the updated text will also be reflected in the ‘back’ button and the tab.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.