ios - Getting Navigation Bar Color For View is Not Working -
i have getting navigation bar color , set view background color it's not same color in bar. don't know why it's doing so. solutions welcome , hope me in matter.
code
self.navigationcontroller.navigationbar.tintcolor = [uicolor bluecolor] uiview *view = [[uiview alloc] initwithframe:cgrectmake(0,0,20,20)]; view.backgroundcolor= self.navigationcontroller.navigationbar.tintcolor;
in application design have same theme that's why it's not getting theme of navigation view background color there difference.
use -[uinavigationbar bartintcolor]
property instead of tintcolor ps. aware of translucency :)