It seems like there's a bug on the UIAppearance
protocol on iOS 7. I found people having (other) problems when using UIAppearance
.
I was using something like:
[[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
which works on iOS 5, but for iOS 6+ I set the background image directly on the navigation bar:
[self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
It looks like a small difference, but it fixed my problem.