On .plist:
View controller-based status bar appearance -> YES
private func _setupNavigationBar() -> Void {
self.navigationBar.shadowImage = nil;
self.navigationBar.translucent = false;
self.navigationBar.barTintColor = UIColor.clearColor() // Bar background color
self.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()] // Title text color
self.navigationBar.setBackgroundImage(nil, forBarMetrics: .Default) // No background image with background clear color makes the bar transparent
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
Note:
1) If on a presented view controller:
On presenter view controller:
On presented view controller:
2) CARE Status bar's background color will be the views background color
Note:
1) If on a presented view controller:
On presenter view controller:
override var childViewControllerForStatusBarHidden: UIViewController? {
return self.presentedViewController
}
override var childViewControllerForStatusBarStyle: UIViewController? {
return self.presentedViewController
}
On presented view controller:
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override var prefersStatusBarHidden: Bool {
return false
}
2) CARE Status bar's background color will be the views background color
No hay comentarios:
Publicar un comentario