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

后端 未结 6 398
栀梦
栀梦 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:18

    I had a similar problem at one point and this bit of code fixed it for me:

    [viewController.view setFrame: [viewController.view bounds]];
    

提交回复
热议问题