知识片段---导航栏设置背景

来源:互联网 发布:阿里云ecs ip 编辑:程序博客网 时间:2024/06/11 13:38
//字体颜色    
    [self.navigationController.navigationBarsetTitleTextAttributes:
    
  @{
NSFontAttributeName:[UIFontsystemFontOfSize:19],
   
   NSForegroundColorAttributeName:[UIColorredColor]}];
//背景图片
    [self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:titleImg]forBarMetrics:UIBarMetricsDefault];
//背景颜色
self.navigationController.navigationBar.barTintColor = [UIColor blueColor];

0 0
原创粉丝点击