I have a requirement to show a viewcontroller in full screen(modal segue). I am simply hiding the status bar on top. I am calling this code on viewdidload of viewcontroller.
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
Now one issue arises is that on very bottom of screen, area gets clipped or like cut of exactly size of status bar. How could i fix this ?
Note: I want to hide status for only one view controller in my app.
Thanks
Above said answers are right…. But thing to know is status bar reservers 20px in height and 460 px is meant for view in a viewcontroller.
Have a check on it. Just goto one of viewcontrollers.
Click on controller view its frame will be (0,0,320,460). Where (0,0,320, 20) is meant for status bar. And notice that view size isnt adjustable in terms of height. Here if we hide satus bar. then view entity’s position changes that actual intended position as view will pulled by some factor.
Click on tab were u can see its property. Set Status bar to None. Now size of view is adjustable in all terms (i.e., origin, width, height). Now change view frame to (0,0,320,480)