UIView

class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate
  • x

    view的x

    Declaration

    Swift

    public var x: CGFloat { get set }
  • y

    view的y

    Declaration

    Swift

    public var y: CGFloat { get set }
  • view的宽度

    Declaration

    Swift

    public var width: CGFloat { get set }
  • view的高度

    Declaration

    Swift

    public var height: CGFloat { get set }
  • view中心X值

    Declaration

    Swift

    public var centerX: CGFloat { get set }
  • view中心Y值

    Declaration

    Swift

    public var centerY: CGFloat { get set }
  • view的size

    Declaration

    Swift

    public var size: CGSize { get set }
  • view的origin

    Declaration

    Swift

    public var origin: CGPoint { get set }
  • 圆角

    Declaration

    Swift

    public var cornerRadius: CGFloat { get set }
  • 边框宽度

    Declaration

    Swift

    public var borderWidth: CGFloat { get set }
  • 边框颜色

    Declaration

    Swift

    public var borderColor: UIColor { get set }
  • 背景图片

    Declaration

    Swift

    public var cgImage: UIImage { get set }