I\'ve been trying to create a full screen view. I plan on using core graphics for rendering. I am new to iPhone development so please forgive this basic question.
Here\'
This works and it is the easiest
UIViewControllerBasedStatusBarAppearance : NO in the .plist
There are two methods;
In the info.plist for your application add a boolean
key UIStatusBarHidden
and set it to true.
At runtime you can call setStatusBarHidden
on your application to show/hide the status bar. E.g.
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]
You may also want to make your rect = [[UIScreen mainScreen] applicationFrame]
Add below method in respective view controller
-(BOOL) prefersStatusBarHidden
It worked for me.
Since I just found the answer I was looking for here, I may as well add that the above method is now depreciated. The modern method is:
- (void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation
Thanks!