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 :)


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -