How do i change the status bar color between black and white in Xcode 7.2

I have an app where the status bar color has to change from white and black based on user input, I cannot figure out how to make it work however with ios 9 and xcode 7

Hi Corey


Look at the methods listed Managing the Status Bar in theUIViewController class reference. Your content view controller should override - preferredStatusBarStyle to returns the status bar style most appropriate for the content currently underlapping it. If/when that content changes, call - setNeedsStatusBarAppearanceUpdate to force the system to call your view controller's -preferredStatusBarStyle method again.

How do i change the status bar color between black and white in Xcode 7.2
 
 
Q