`
wang_peng1
  • 浏览: 3902384 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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
   

}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics