objective c - Setting custom color on UINavaigationBar -


is possible set color of uinavigationbar particular opacity , alpha? i've tried lot things, still can't want. color 7, 4, 43 rgb , 0,4 opacity , alpha. enter image description here

i think should work you:

[navigationbar setbartintcolor:[uicolor colorwithred:7.0/255.0 green:4.0/255.0 blue:43.0/255.0 alpha:0.4]]; 

and in swift:

navigationbar.bartintcolor = uicolor(red: 7.0, green: 4.0, blue: 43.0, alpha: 0.4) 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -