title: how do I properly change my status bar style in swift 2/ iOS 9?
body: <p>I'm attempting to change my status bar's style to <code>.Light</code> but the previous code I implemented in swift 1.2 seems not to work anymore.. here's the code:</p>
  
  <pre><code>override func viewDidLoad() {
          super.viewDidLoad()
  
          UIApplication.sharedApplication().statusBarStyle = .LightContent
  
      }
  </code></pre>
  
  <p>now I have my <code>View controller-based status bar appearance</code> info.plist setting to YES, and reading the UIKit doc, this will negate any statusBarStyle changes and keep it at default. However when I change the setting to 'NO' and change the statusBarStyle, I get this <code>&lt;Error&gt;: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable</code> in my debugger.. So is this a bug in Xcode? because to change the status bar style you must change info.plist setting to NO, but when that happens.. error</p>