Why can't I set a custom color-tint for the UINavigationBar?

Posted by mobibob on Stack Overflow See other posts from Stack Overflow or by mobibob
Published on 2010-04-24T23:32:33Z Indexed on 2010/04/24 23:43 UTC
Read the original article Hit count: 439

Filed under:
|
|

I want to change the color on the navigation bar and the documentation states not to attempt to change the 'alpha' value. So, how can I set a color that is not the SDK defined values (e.g., [UIColor redColor], brownColor, etc.) if all the constructors provide an alpha value? I tried getting the current alpha value but that did not help. When I use a custom color, it causes the navigation bar to look like an x-ray (a scraggy, black-on-white).

[self.navigationController.navigationBar setTintColor: [UIColor brownColor]];

© Stack Overflow or respective owner

Related posts about uicolor

Related posts about uinavigationbar