W willemVP macrumors newbie Original poster Aug 4, 2011 7 0 Jan 6, 2012 #1 I want to hide the title in my navigation bar. But I still need my title to go back, so I need to set it. How can I hide it?
I want to hide the title in my navigation bar. But I still need my title to go back, so I need to set it. How can I hide it?
X xStep macrumors 68020 Jan 28, 2003 2,031 143 Less lost in L.A. Jan 9, 2012 #2 If you're in a UIViewController, then it may be as simple as; Code: [self setTitle: @""]; Otherwise you may need to dig deeper into the UINavigationItem, which a UIViewController has, or even the UINavigationController.
If you're in a UIViewController, then it may be as simple as; Code: [self setTitle: @""]; Otherwise you may need to dig deeper into the UINavigationItem, which a UIViewController has, or even the UINavigationController.
X xcodeNewbie macrumors member Jul 1, 2011 65 0 Jan 10, 2012 #3 Hiding Title If you're not in a view controller, you could use the following code: Code: [[[navigationController viewControllers] lastObject] setTitle:@""]; Then you'd just have to worry about saving the title somewhere.
Hiding Title If you're not in a view controller, you could use the following code: Code: [[[navigationController viewControllers] lastObject] setTitle:@""]; Then you'd just have to worry about saving the title somewhere.