View Full Version : Navigation Bar not getting displayed
McBgnr
Aug 17, 2009, 11:59 AM
I am trying to add Black Navigation bar from the Attributes Inspector to my View, but it is not getting getting displayed at runtime. What else do I have to do for using the Navigation Bar on the view?
dejo
Aug 17, 2009, 12:24 PM
Is this in the "Simulated Interface Elements" section that you added it? If so, that doesn't actually add it; it's just, um..., simulated. :)
McBgnr
Aug 17, 2009, 12:36 PM
Oh yes... it is in the simulated interface elements section. So it will not show up. What is the correct way of adding it then?
robbieduncan
Aug 17, 2009, 12:43 PM
Oh yes... it is in the simulated interface elements section. So it will not show up. What is the correct way of adding it then?
UINavigationController?
The simulated stuff is just to let you see how the view will look with the navigaion/tab controller bits showing...
McBgnr
Aug 17, 2009, 01:14 PM
I added UINavigationViewController to the main xib and added outlet in the AppDelegate.
However, my current view is a full screen view, and I am displaying my view using the call:
[window addSubview:myViewcontroller.view];
How can I now get the navigationbar displayed on top of myView?
PhoneyDeveloper
Aug 17, 2009, 01:27 PM
If you build the navbar template project it does exactly this. Start with that template.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.