Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

McBgnr

macrumors regular
Original poster
Apr 13, 2009
144
0
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?
 
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. :)
 
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?
 
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...
 
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:
Code:
[window addSubview:myViewcontroller.view];

How can I now get the navigationbar displayed on top of myView?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.