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
   

}

猜你喜欢

转载自wang-peng1.iteye.com/blog/1979049
今日推荐