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

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

    I imagine you should add a UIStatusBarHidden item to the Info.plist if you want the status bar to be removed from start.

    Discussion@apple.com

    You also could look into setting the Autosizing to resize vertical (and horizontal)

    See under Add A Text View here for example of what to click on in InterfaceBuilder

    Quote:

    Click the horizontal and vertical lines in the internal box so that they become solid red lines. The animated preview shows that the text view's internal size will grow and shrink with the window.

提交回复
热议问题