Author Topic: How do I change the title text of a navigation bar?  (Read 2256 times)

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
How do I change the title text of a navigation bar?
« on: May 13, 2014, 04:17:34 PM »
To change the title text of a navigation bar, you can set the navigation item's title property. For example:

In Swift:
Code: [Select]
self.navigationItem.title = self.memberEntity.memberNickName
In Objective-C:
Code: [Select]
self.navigationItem.title = self.memberEntity.memberNickName;
All the best!
Kevin McNeish
Author of "Learn to Code in Swift": https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11
« Last Edit: July 18, 2015, 03:21:12 PM by kjmcneish »