uinavigationcontroller - iOS 8 - Set Status Bar Color (when your UINavigationBar has a nil backgroud image) -


i using view pager in app (specifically icviewpager). make view pager blend navigation bar so:

enter image description here

i had put these lines of code in appdelegate.m

[[uinavigationbar appearance] setbackgroundimage:[[uiimage alloc] init] forbarmetrics:uibarmetricsdefault]; [[uinavigationbar appearance] setshadowimage:[[uiimage alloc] init]]; 

however, causes status bar not same color navigation bar.

how set color of status bar same navigation bar?

how set color of status bar same navigation bar?

you don't. status bar has no color. transparent. job make view has desired color extend top of view, behind status bar, that color shows through.

this view window, example, or view controller's main view. right now, white, , see white color show through above top of navigation bar. if give window (or main view, or whatever white thing seeing) same color navigation bar, you'll effect want.

alternatively, adjust size , position of navigation bar reaches top of window , covers it.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -