iOS7 navigationBar and TabBar Color 默认有变化

self.navigationController.navigationBar.translucent=NO;
默认为yes

if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) {

   
     [[UINavigationBar appearance]setTintColor:NavigationColor];
} else {
     [[UINavigationBar appearance]setTintColor:[UIColor whiteColor]]; // it set color of bar button item text
     [[UINavigationBar appearance]setBarTintColor:[UIColor GreenColor]]; // it set color of navigation
     [[UINavigationBar appearance] setBarStyle:UIBarStyleDefault]; // it set Style of UINavigationBar
     [[UINavigationBar appearance]setTitleTextAttributes:@{UITextAttributeTextColor : [UIColor whiteColor]}]; //It set title color of Navigation Bar
   

}

 

你可能感兴趣的:(NavigationBar)