• UINavigationController改变UINavigationBar导航条标题颜色跟字体


    UINavigationController改变UINavigationBar导航条标题颜色跟字体

    UINavigationController改变UINavigationBar导航条标题颜色和字体

    iOS 5 以后 UINavigationController 可以 改变UINavigationBar导航条标题颜色和字体

    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:

                                                                         [UIColor colorWithRed:0 green:0.7 blue:0.8 alpha:1], UITextAttributeTextColor,

                                                                         [UIColor colorWithRed:0 green:0.7 blue:0.8 alpha:1], UITextAttributeTextShadowColor,

                                                                         [NSValue valueWithUIOffset:UIOffsetMake(0, 0)], UITextAttributeTextShadowOffset,

                                                                         [UIFont fontWithName:@"Arial-Bold" size:0.0], UITextAttributeFont,

                                                                         nil]];

        

    其中 UITextAttributeTextColor和UITextAttributeFont 属性是文字颜色和字体

  • 相关阅读:
    机器学习介绍
    Day03 作业
    Python函数基础
    Python练习
    耳机 线控 控制播放
    edittext 底线颜色
    从service启动activity startActivity慢 的解决方案
    国产手机没有google services 和google play崩溃,判断google services是否存在
    检测耳机插入和拔出
    获取view宽高
  • 原文地址:https://www.cnblogs.com/liumu/p/5339421.html
Copyright © 2020-2023  润新知