用系统导航控制器改变navigationItem的标题颜色和导航栏颜色

来源:互联网 发布:网络基础知识入门ip 编辑:程序博客网 时间:2024/05/16 13:02

  

1:修改UINavigationController title 字体的颜色

NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName,nil];

 [self.navigationController.navigationBar setTitleTextAttributes:attributes];


2:修改导航栏的背景

    [self.navigationController.navigationBar setBarTintColor:HERORGB(202, 55, 53)];

0 0
原创粉丝点击