UIViewController's prefersStatusBarHidden not working

前端 未结 4 580
星月不相逢
星月不相逢 2020-12-23 11:21

I am trying to make the status bar for one of my view controllers to be hidden (when displayed modally). When I\'m presenting the view controller, the status bar is is to be

4条回答
  •  梦毁少年i
    2020-12-23 12:14

    You may add this to info.plist

    "View controller-based status bar appearance" and set the value to "No"

提交回复
热议问题