Bene
Bene

Reputation: 636

Navigationbar changes bartintcolor randomly only on iPhone 4

I have a serious problem with an App on iPhone 4 devices running IOS 7. My App has a TabbarController with 5 Tabs each Tab has a NavigationController (and the view a navigationbar). My App is working great on iPhone 5 and even with all devices in the simulator but not with a real iPhone 4.

My goal was that every Tab has its own navigationbar color, so in the viewWillAppear method i made for example this:

[self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0.102 green:0.129 blue:0.282 alpha:1.0]];
[self.navigationController.navigationBar setTranslucent:YES];

As I mentioned before, it works great except the real iPhone 4. If I switch through the tabs all seems to be working, colors of the navigationbars are correct. But when I open one Tab again (which I already have opened before) the navigationBar is PLAIN WHITE!!!

I am confused why?

Upvotes: 0

Views: 116

Answers (1)

Bene
Bene

Reputation: 636

For those who ran into the same issue... it is a bug and already reported. See the Apple DEV Forum. It seems that this is only happening if you also use the mapkit.

Upvotes: 1

Related Questions