i am trying to change the status Bar Style of UISplitViewController
i used to do that with UINavigationBar
UINavigationBar.appearance().barStyle = UIBarStyle.Black
but the UISplitViewController
does not have an appearance
property
is there anyway to change that Style ?
View controller-based status bar appearance is set to YES
by default. So you just have to subclass your split controller like
class SplitViewController: UISplitViewController {
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return UIStatusBarStyle.BlackOpaque
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With