I tried everyhing, I just can't put my uiview behind my status bar ....
Posted
by gotye
on Stack Overflow
See other posts from Stack Overflow
or by gotye
Published on 2010-03-12T21:34:53Z
Indexed on
2010/03/12
21:37 UTC
Read the original article
Hit count: 264
Hey guys,
I have been trying every tips you already gave to other mates that where having the same issue but I just can't manage to do it ...
My app isn't even special, it is a basic app with a tab bar and nav bar ...
I currently got something like this in the controller I push (that i want to be fullscreen) :
- (void)viewDidLoad {
[super viewDidLoad];
self.view.autoresizingMask = 0;
self.view.superview.autoresizingMask = 0;
[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleBlackTranslucent];
//[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
[self.navigationController.navigationBar setBarStyle:UIBarStyleBlackTranslucent];
CGRect test = CGRectMake(0.0,0.0,320,44);
//[self.navigationController.navigationBar setFrame:test];
//[self setWantsFullScreenLayout:YES];
[self.view.superview setBounds:CGRectMake(0,-20.0,320,480)];
//[self.view setBounds:[[UIScreen mainScreen] bounds]];
[self.view setBounds:CGRectMake(0,-20.0,320,480)];
//CGRect rect4 = CGRectMake(0.0,0.0,320.0,500.0);
//[self.view setFrame:rect4];
[self.view setBackgroundColor:[UIColor redColor]];
}
As you can see I tried a lot of stuff :D but my red background isn't going under my status bar ...
I am using the iphone simulator (in case it has to do with it ..)
Thank you for any help ;)
Gotye.
© Stack Overflow or respective owner