Search code examples
iosios7uinavigationbarrgbuicolor

Grabbing the rgb of a UIColor of a UINavigationController with translucent = YES


How do I grab the RGB of a UINavigationBar in ios 7. I have set the RGB to 0, 0, 0 but its not pure black since ios 7 sets a translucency.

How do I get the real color so I can create images for my toolbars?


Solution

  • set translucent property NO If you do not need it.

    [[[self navigationController] navigationBar] setTranslucent:NO];