美文网首页
更改UITabBar的字体颜色 与 状态栏的样式

更改UITabBar的字体颜色 与 状态栏的样式

作者: 阳光的大男孩儿 | 来源:发表于2016-05-13 17:33 被阅读98次

1.更改tabbar的字体的颜色:

 [[UITabBarItem appearance]setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName, nil] forState:(UIControlStateSelected)];

2.设置状态栏的样式:

 [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;

相关文章

网友评论

      本文标题:更改UITabBar的字体颜色 与 状态栏的样式

      本文链接:https://www.haomeiwen.com/subject/ipkmrttx.html