NavigationBar Text Color Change

 

if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) {

        // > iOS7

        NSLog(@”iOS7″);

        

        self.navigationController.navigationBar.tintColor = [UIColorwhiteColor];

        

        //set back button color

        [[UIBarButtonItemappearanceWhenContainedIn:[UINavigationBarclass], nil] setTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:[UIColorwhiteColor], UITextAttributeTextColor,nil] forState:UIControlStateNormal];

        //set back button arrow color

       // [self.navigationController.navigationBar setTintColor:[UIColor redColor]];

        

    } else {

        

        // <= iOS6

        NSLog(@”iOS6″);

        

    }

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s