I am styling my UINavigationController with a custom image, however, this looks quite bad in a Popover, is there a way to do this only for navigation controllers, which are not in a popover?
I currently do this in my AppDelegate.m:
- (void)applyCustomStyling{
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"TitleBar.png"] forBarMetrics:UIBarMetricsDefault];
[[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@"TitleBar.png"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
}
So if you don’t believe that it looks bad:
http://i.minus.com/joDeixTP7XLpl.png
This is how it should be (UIPopover-default):
You can use
appearanceWhenContainedIn1 to have more granular control of appearance based on your controller hierarchy: