Click here to Skip to main content
15,745,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project with the storyboard using auto Layout with the setting w any (size) y any (size). I embedded a navigation controller (with the first viewController). The first viewController has a navigation bar (as expected) but the second viewController doesn't. It has a top bar. I changed the color of the navigation controllers navBar, and they all change (as expected) but I cannot add a UIBarButton, or create a title for the second viewController.

(Please not that in my previous projects, when I didn't use auto layout, (I made it explicitly for the iphone,) all viewControllers had a nav bar.

Please don't be too harsh. I'm kinda new at this.


Just realized it has top Layout guide, not top bar

1 solution

The navigation bar is a UI element. You must drag one into the controller in the interface builder and than fill it out.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900