Preferred status bar style on iPad multitasking - split screen

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 05:00:40
Blair
// This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller. Defaults to NO.

@available(iOS 7.0, *)
public var modalPresentationCapturesStatusBarAppearance: Bool

Usage:

navigationController.modalPresentationStyle = .FormSheet
navigationController.modalPresentationCapturesStatusBarAppearance = true

Once that's set the root view controller of that navigation controller can override the preferredStatusBarStyle()

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!