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

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring