In my AppDelegate application, I use an appearance proxy to create a user interface:
//Setup custom appearances [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"header"] forBarMetrics:UIBarMetricsDefault]; [[UINavigationBar appearance] setTintColor:[UIColor blackColor]]; [[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@"header"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
This will crash in iOS4. How to check if this feature is available in the iOS version that they run, so I can avoid the crash?
source share