美文网首页A知识点2
全局设置navigationBar标题的样式和barItem的标

全局设置navigationBar标题的样式和barItem的标

作者: a7cdfadad9f2 | 来源:发表于2016-08-10 08:51 被阅读252次

//UIColorWithHexRGB( )这个方法是自己定义的,这里只需要给个颜色就好了

[[UINavigationBar appearance] setBarTintColor:UIColorWithHexRGB(0xfefefe)];

[[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:18],NSForegroundColorAttributeName:UIColorWithHexRGB(0xfe6d27)}];

[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont boldSystemFontOfSize:10],NSForegroundColorAttributeName : UIColorWithHexRGB(0x666666)} forState:UIControlStateNormal];

[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont boldSystemFontOfSiz

相关文章

网友评论

    本文标题:全局设置navigationBar标题的样式和barItem的标

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