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

Swift Programming Books and Links:-

Links:-

1)https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html

2)https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html#//apple_ref/doc/uid/TP40014216-CH4-XID_26

3)http://www.appcoda.com/swift-programming-language-intro/

4)https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/Declarations.html#//apple_ref/swift/grammar/import-declaration