Question

In Interface builder, create a UIView, then a UINavigationBar and then attempt to add multiple UIBarButtomItems to that Navigation Bar. The resulting hierarchy should be:

- View
  - Navigation Bar
    - Navigation Item (Title)
      - Bar Button Item 
      - Bar Buttom Item

I can never seem to add the second Bar Button Item. I know it is possible because the Utility Application Template in XCode has it. If I copy and past that Navigation Bar to my XIB it works fine. I am looking to create a NavigationBar with left, right button and middle text.

UPDATE

Another test is to try and add a Bar Buttom Item to the left position. Can't seem to do it for me at least.

What am I missing here?

Was it helpful?

Solution

I have no problem doing this in 3.2 beta 2. Just make sure to drag it to the left or right side. A blue outline will appear where the button will be placed.

Edit:

I've managed to reproduce what you're talking about. When I did it successfully, I dragged the item to the "pretty picture", the graphical representation of the view. When I tried dragging it into the view hierarchy, I ran into your problem. Have you tried dragging the button to the actual Navigation Bar? I hope this is clear, I'm not really sure what to call this window.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top