Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BNicholson

macrumors newbie
Original poster
Hey guys, I have been fighting with my UIViewController's navigationItem to get it to redraw the title after I have hidden the back button. In previous beta's(I think 5 was the last one) when I called this:

Code:
[self.navigationItem setHidesBackButton:YES animated:YES];

the title automatically adjusted itself to be center since there was no longer a back button taking up space on the title bar. I was wondering if anyone had come across this issue or if anyone knows of a way to get the title to center itself after I hide the back button.

-Brent
 
Sorry for being unclear 😱.

UINavigationItem doesn't inherit from NSView, but UINavigationBar does so try calling display on that...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.