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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

android - Format a french phone number -