zoukankan      html  css  js  c++  java
  • UINavigationController 总结

    一 . UINavigationBar

      1.获取 UINavigationBar 对象: [UINavigationBar appearance] ,可以通过该方法对全部 navigation 进行设置

      2.设置导航栏背景图片:[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"name"] forBarMetrics:UIBarMetricsDefault];

      3.设置标题字体:[UINavigationBar appearance].titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};

    二 . UIBarButtonItem

      1.获取 UIBarButtonItem 对象: [UIBarButtonItem appearance] 可以通过该方法实现对 barButtonItem (即导航栏按钮)样式,显示字体进行设置 (同一 navigation 下全部)

      2.设置按钮的颜色,大小 : [[UIBarButtonItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:13]} forState:UIControlStateNormal];

      3.设置导航栏渐变色(返回箭头白色) : [UIBarButtonItem appearance].tintColor = [UIColor whiteColor];

  • 相关阅读:
    http uri唯一标识
    http协议
    python模块 sys
    file 文件的操作
    库的介绍及使用
    python os模块
    python的序列化与反序列化
    python 字典的定义以及方法
    python字符串的常用方法
    在Windows下使用adb logcat grep
  • 原文地址:https://www.cnblogs.com/Ager/p/4948329.html
Copyright © 2011-2022 走看看