iOS 7 | Navigation bar / Toolbar buttons very close to status bar

前端 未结 6 994
太阳男子
太阳男子 2020-11-29 17:49

I have a problem when dragging a navigation bar or toolbar (storyboard) to my view controller.

UINavigationBar:

6条回答
  •  一整个雨季
    2020-11-29 17:59

    I gave up and had to set the navbar height constraint to 64 in x xib based VC cause viewController.topLayoutGuide.length is 0 in viewDidLoad despite statusbar being present :-[ which means in a non universal app on ipad you'd have 20 px on the top of the view wasted (cause status bar is separate from the iphone simulation window)

提交回复
热议问题