Change status bar background color in some view controllers - Swift -


i building ios app in swift , need change background color of status bar in view controllers. have been able change text color not able find way change background.

i allowing "view controller-based status bar appearance" yes , using

uiapplication.sharedapplication().statusbarstyle = .lightcontent 

in viewdidload method.

any suggestions?

each view controller use preferredstatusbarstyle rather on application

https://developer.apple.com/library/ios/documentation/uikit/reference/uiviewcontroller_class/#//apple_ref/occ/instm/uiviewcontroller/preferredstatusbarstyle


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -