Reputation: 731
I have a UINavigationController, I've added an a UIViewController under the nav controller.
The basic functionality is working fine, I'm able to click an item in my view controller and it takes me to a second view and I can use the back button to go back.
My question is, when I'm in IB, is there a way when I'm editing a VC that is going to be under a NavController to tell the VC "hey, pretend there is a nav bar at the top so that I can lay this view out with that nav bar in mind"? When I open up the xib file for the VC that is going to be under the Nav it shows me a full view to edit, and then when it gets loaded in it shrinks and shifts things and everything is good. But I may want a specific view that fits a certain way on the screen, and having the title bar up top would be nice as a reference when building a view that is going to be used under a nav controller.
Upvotes: 1
Views: 2150
Reputation: 16540
Select the main UIView
in IB. In the properties, go to the Attributes Inspector. You'll see "Simulated Metrics". There is a pulldown for Top Bar. Set it to Navigation Bar.
Upvotes: 4