0

I got this colour UIColor(red:0.26, green:0.5, blue:0.82, alpha:1.0)

When I applied it to uibutton and nav bar I like the nav bar color better than the original colour applied to the button . How do i get that color? Here is pic

pic

Fogmeister
  • 76,236
  • 42
  • 207
  • 306

1 Answers1

4

Your navigation bar is translucent, so its visible color is slightly lighter than the tintColor. You can get rid of the translucency using :

self.navigationBar.translucent = false

But if you want to keep the translucent effect, for example if you use an UIScrollView, then i suggests you to refer to this question. which provides a calculator to get the correct tintColor.

Community
  • 1
  • 1
Michaël Azevedo
  • 3,874
  • 7
  • 31
  • 45