ios - How do I change the color of the status bar in an iPhone app? -
this question has answer here:
- how change status bar text color in ios 7 51 answers
how can change color of header section (status bar) in iphone app. part carrier, time, , battery.
this part
more specifically, part. i'd change ui black, white or easier see color.
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:
- go info.plist , add following key
view controller-based status bar appearance, set valueno - in viewcontrollers viewdidload set
white bar:
uiapplication.sharedapplication().statusbarstyle = .lightcontent
dark bar:
uiapplication.sharedapplication().statusbarstyle = .default


Comments
Post a Comment