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

pinsrw

macrumors regular
Original poster
May 30, 2010
194
0
Hi all,

If I have an app and I want to have several full-screen UIViews, sort of like a navigation based app. However I don't want the top bar to appear. Is there a way to achieve something like a navigation based app without the top bar & UINavigationController?

Thanks.
 
You can hide the navigation bar (what you are calling the top bar) of a UINavigationController using the obvious navigationBarHidden hidden property.

Great, thanks. Now, I see how to remove the nav bar in IB... How do you do that programmatically? It's not clear how to access the navigation controller from within my primary (root view) class. Also, how can I have the nav bar for one UIView but not others?
 
Great, thanks. Now, I see how to remove the nav bar in IB... How do you do that programmatically?
:confused: Set the property as you would with any other.

It's not clear how to access the navigation controller from within my primary (root view) class. Also, how can I have the nav bar for one UIView but not others?

Every UIViewController has a reference to the containing UINavigationController. So it's very easy to hide and show the navigation bar when any UIViewContoller appears or hides.

Can I suggest you take some time to read the documentation: it has answers to all your questions. It should be your first source for answers. The ability to use the documentation is a key programming skill.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.