IOS Configuring the Navigation Bar
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_4_3
//Configuring the Navigation Bar for iOS 5
if ([[UINavigationBar class] respondsToSelector:@selector(appearance)]) {
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"header.png"]
forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]];
}
#endif
//Configuring the Navigation Bar for iOS 5
if ([[UINavigationBar class] respondsToSelector:@selector(appearance)]) {
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"header.png"]
forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]];
}
#endif
Comments
Post a Comment