Colors appearing on iPhone 6 plus, plus using UIImageRenderingModeAlwaysTemplate

I have a PNG image that I recolor at runtime:

logo.image = [[UIImage imageNamed:@"logo.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
logo.tintColor = [UIColor whiteColor];

      

It looks white on my iPhone 6, all simulators, etc .; but it's a slightly darker gray on the iPhone 6+. Could there be a reason I missed it?

Here is a screenshot of the iPhone 6+ (all navigation elements should be white - like all other devices)

6+ screenshot

+3


source to share


1 answer


enter image description here

barTintColor is made semi-transparent by default unless you set the semi-transparent property to NO.



try it

self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
self.navigationController.navigationBar.translucent = NO;

      

+1


source







All Articles