zoukankan      html  css  js  c++  java
  • 一、 UIView的常见属性

    1.     superview

    l   @property(nonatomic,readonly) UIView *superview;

    l   获得自己的父控件对象

    2.     subviews

    l   @property(nonatomic,readonly,copy) NSArray *subviews;

    l   获得自己的所有子控件对象

    3.     tag

    l   @property(nonatomic) NSInteger tag;

    l   控件的ID标识,父控件可以通过tag来找到对应的子控件

    4.     frame

    l   @property(nonatomic) CGRect frame;

    l   控件所在矩形框的位置和尺寸(以父控件的左上角为坐标原点)

    5.     bounds

    l   @property(nonatomic) CGRect bounds;

    l   控件所在矩形框的位置和尺寸(以自己左上角为坐标原点,所以bounds的xy永远为0)

    6.     center

    l   @property(nonatomic) CGPoint center;

    l   控件中点的位置(以父控件的左上角为坐标原点)

    7.     transform

    l   @property(nonatomic) CGAffineTransform transform;

    l   控件的形变属性(可以设置旋转角度、比例缩放、平移等属性)

    今天过得开心又充实,么么哒
  • 相关阅读:
    js小程序
    事务的概念
    为期一个月培训的总结
    软件测试培训总结篇2
    软件测试培训总结篇1
    软件测试培训第30天
    软件测试培训第29天
    软件测试培训第28天
    软件测试培训第26天
    软件测试培训第27天
  • 原文地址:https://www.cnblogs.com/whblovelap/p/3826704.html
Copyright © 2011-2022 走看看