UIColor

class UIColor : NSObject, NSSecureCoding, NSCopying
  • 随机色

    Declaration

    Swift

    public class var random: UIColor { get }
  • 设置透明度

    Declaration

    Swift

    public func with(alpha: CGFloat) -> UIColor

    Parameters

    alpha

    透明度

    Return Value

    uicolor

  • 十六进制色: 0x666666

    Declaration

    Swift

    convenience init(value: UInt)

    Parameters

    RGBValue

    十六进制颜色

  • 十六进制色: 0x666666

    Declaration

    Swift

    convenience init(str: String)

    Parameters

    str

    #666666 / 0X666666 / 0x666666