您的位置:首页 > 其它

修改系统导航栏背景色和标题颜色

2015-04-10 15:30 169 查看
//设置NavigationBar背景颜色
[[UINavigationBar appearance] setBarTintColor:[UIColor orangeColor]];
//@{}代表Dictionary(修改标题颜色和字体)
UIFont* font = [UIFont fontWithName:@"HelveticaNeue" size:21.0];
NSDictionary* textAttributes = @{NSFontAttributeName:font,
NSForegroundColorAttributeName:[UIColor blackColor]};
[[UINavigationBar appearance]setTitleTextAttributes:textAttributes];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: