uicolor swift_Swift中的UIColor

uicolor swift

UIColor (UIColor)

An object that stores color data and sometimes opacity.

存储颜色数据和有时不透明度的对象。

There are several ways to select colors. The two important color identification systems are RGB and HSB. The most useful to programmers is the RGB or Red-Green-Blue color system. Each of the color components can be expressed separately as a value between 0 and 255, with 255 being the full color and 0 being no color.

有几种选择颜色的方法。 两个重要的颜色识别系统是RGBHSB 。 对程序员最有用的是RGBRed-Green-Blue颜色系统。 每个颜色分量都可以分别表示为0到255之间的值,其中255为全色,0为无色。

内置UIColor预设 (Built-In UIColor Presets)

There are a few built-in colors, which are accessed with class variables. These are the available preset colors:

有一些内置的颜色,可以使用类变量进行访问。 这些是可用的预设颜色:

Image for post

If you need to store th

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值