How to set the top position = 0 after setStatusBarHidden:Yes?

后端 未结 6 409
栀梦
栀梦 2020-12-09 11:26

I found that after setting the

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]

at viewDidLoad, then if

6条回答
  •  感动是毒
    2020-12-09 12:15

    Check to make sure the size of your root view in your nib is properly set to 480x320. Some of the template project create those at 460x320 to account for the status bar. If you load a view that span full screen and the status bar is hidden, it should just work and you shouldn't need to do anything special at all.

提交回复
热议问题