views:

20

answers:

2

I want to show the UIView in full screen, but show the status bar, other things, like the navigation bar need to cover by the UIView. How can I do so ? Thank you.

A: 

Struggling a little to fully understand the question, but I think you're asking how you can display a UIView above another view (so that the view with the navigation controls is completely hidden by the second view)?

UIViewController has:

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

It would be wise to have your second view managed by a ViewController, too. For the sake of example let's say your view with the navigation bar is managed by navigationViewController, and the view you want to display is managed by otherViewController...

[navigationViewController presentModalViewController:otherViewController animated:YES];
dannywartnaby
I have a view that is a UIView, call "mainUIView", and a UIView called "subUIView", and I want the subUIView fill in the screen, except the status bar.
Ted Wong
OK, two choices - Use UIViewControllers and present/display as appropriate, or add subUIView as a subview of mainUIView or your application's UIWindow directly (as suggested by Eiko below).Both will work, but without understanding more of your use case, I couldn't say which is better/more appropriate.
dannywartnaby
A: 

Add the view to your main UIWindow instance directly as a subview.

Eiko