tabbar颜色与文字大小,状态栏样式

tabbar文字颜色与大小

[self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]} forState:UIControlStateNormal];

[self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]} forState:UIControlStateNormal];

设置导航栏文字颜色与大小

self.navigationBar.barTintColor = MAINColor;

 [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]}];

  //.设置状态栏样式

  [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;

设置tabbar不透明 

self.tabBar.translucent = NO;

posted @ 2016-08-12 10:40  zuidap  阅读(1507)  评论(0编辑  收藏  举报