How to specify the left, right, or title View button in XIB

Posted by Sharen Eayrs on Stack Overflow See other posts from Stack Overflow or by Sharen Eayrs
Published on 2012-11-26T07:40:24Z Indexed on 2012/11/26 11:05 UTC
Read the original article Hit count: 245

Filed under:
|
  1. I do not want to create a custom navigation bar.
  2. I am pushing a UIViewController and I want to customize how the navigation bar looks for that UIViewController

In story board, we just specify the segue and a nav bar show up on the screen. We just drag and drop UIBarItem to the left and right.

In XIB, the navigationBar simply doesn't show up.

I can add navigation Item but the one I added is ignored.

I've heard that there used to be an outlet called navigationItem but it's deprecated for reason I do not know. I can add UINavigationBar, however that would be adding my own custom bar. I want the navBar that's provided by UINavigationController.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode4.5