Sunly
Sunly

Reputation: 330

Navigationbar white tintcolor looks gray

I am developing an application which supports iOS 7 and later, using navigationbar with bartintcolor of "green color". However, I got a problem when setting "tintcolor" to white. It became gray color instead of white (as shown in the image below).

Thanks,

NavigationBar

Upvotes: 1

Views: 422

Answers (2)

Valeriy
Valeriy

Reputation: 71

I had the same problem and spent lots of time figuring it out.

  1. Go to iOS Settings > General > Accessibility > Increase Contrast.
  2. Turn off "Darken Colors" switch.

Upvotes: 4

Mitul Bhadeshiya
Mitul Bhadeshiya

Reputation: 1358

please add code below to your appdelegate file

  [[UINavigationBar appearance] setTitleTextAttributes:@{ UITextAttributeTextColor: [UIColor whiteColor],UITextAttributeFont: [UIFont fontWithName:@"FONT_NAME" size:15] }];

Upvotes: 0

Related Questions