zoukankan      html  css  js  c++  java
  • UIView的背景颜色

    一个UIColor代表一种颜色,通过UIColor的类方法,可以获得很多常用的颜色
    + (UIColor *)blackColor;      // 0.0 white 黑色
    + (UIColor *)darkGrayColor;   // 0.333 white 深灰色
    + (UIColor *)lightGrayColor;  // 0.667 white 亮灰色
    + (UIColor *)whiteColor;      // 1.0 white 白色
    + (UIColor *)grayColor;       // 0.5 white 灰色
    + (UIColor *)redColor;        // 1.0, 0.0, 0.0 RGB 红色
    + (UIColor *)greenColor;      // 0.0, 1.0, 0.0 RGB 绿色
    + (UIColor *)blueColor;       // 0.0, 0.0, 1.0 RGB 蓝色
    + (UIColor *)cyanColor;       // 0.0, 1.0, 1.0 RGB 青色
    + (UIColor *)yellowColor;     // 1.0, 1.0, 0.0 RGB 黄色
    + (UIColor *)magentaColor;    // 1.0, 0.0, 1.0 RGB 品红
    + (UIColor *)orangeColor;     // 1.0, 0.5, 0.0 RGB 橙色
    + (UIColor *)purpleColor;     // 0.5, 0.0, 0.5 RGB 紫色
    + (UIColor *)brownColor;      // 0.6, 0.4, 0.2 RGB 棕色
    + (UIColor *)clearColor;      // 0.0 white, 0.0 alpha 清除颜色(空色
     
  • 相关阅读:
    元组,字典
    python字符串
    tensorflow 学习笔记
    tensorflow example1
    python第二章(2)列表
    python3.5学习第二章(1)标准库,bytes
    类加载过程
    数据值与地址值
    类的初始化与实例化顺序
    SpringCloudBus
  • 原文地址:https://www.cnblogs.com/Opaser/p/4595169.html
Copyright © 2011-2022 走看看