zoukankan      html  css  js  c++  java
  • 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 属性是文字颜色和字体

  • 相关阅读:
    PHP分页类
    phpexcel 控制导出数据内容和行数
    phpexcel 导入 和 导出
    PHP无限极分类
    php 对查询结果集进行排序
    php 删除文件夹及文件夹内文件函数
    php 字符串截取函数
    php 获取用户登录的ip
    js layer页面层加载新网站
    分享到qq
  • 原文地址:https://www.cnblogs.com/liumu/p/5339421.html
Copyright © 2011-2022 走看看