Hiding status bar iOS 7

前端 未结 5 816
我寻月下人不归
我寻月下人不归 2020-12-05 00:17

Can\'t hide status bar on view controller on ios 7 device.

Already tried setting through plist file and also in Appcontroll

5条回答
  •  离开以前
    2020-12-05 01:18

    I had the same issue recently. Be sure that you are targeting the correct view controller. Try to hide the status bar in the root view controller. Also, I´m implementing the method (BOOL)prefersStatusBarHidden (doc) in my UIViewControllers to hide the status bar. By using this method, you can forward the preferred configuration to a "child view controller". Also, this method works fine in UIViewControllers presented as modal.

提交回复
热议问题