ios - How do I change the color of the status bar in an iPhone app? -


this question has answer here:

how can change color of header section (status bar) in iphone app. part carrier, time, , battery.

this part

enter image description here

more specifically, part. i'd change ui black, white or easier see color.

enter image description here

to change navigation bar color:

navigationcontroller!.navigationbar.bartintcolor = uicolor.bluecolor() 

to change text in navigation bar:

navigationcontroller!.navigationbar.titletextattributes = [nsforegroundcolorattributename: uicolor.yellowcolor()] 

update
change status bar:

  1. go info.plist , add following key view controller-based status bar appearance , set value no
  2. in viewcontrollers viewdidload set

white bar:
uiapplication.sharedapplication().statusbarstyle = .lightcontent

dark bar:
uiapplication.sharedapplication().statusbarstyle = .default


Comments

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -