@property(nonatomic,readonly) UIView *superview;
Get your own parent control object
@property(nonatomic,readonly,copy) NSArray *subviews;
Get all your child control objects
@property(nonatomic) NSInteger tag;
The ID(identification) of the control. The parent control can use the tag to find the corresponding child control
@property(nonatomic) CGAffineTransform transform;
Control's deformation properties (you can set rotation angle, scaling, translation and other properties)
– (void)addSubview:(UIView *)view;
Add a child control view
– (void)removeFromSuperview;
Remove from parent control
– (UIView *)viewWithTag:(NSInteger)tag;
Find the corresponding control based on a tag (usually a child control)
@property(nonatomic) CGRect frame;
The position and size of the control's rectangular box in the parent control (with the upper left corner of the parent control as the coordinate origin)
@property(nonatomic) CGRect bounds;
The position and size of the rectangular box of the control (take the upper left corner as the origin of coordinates, so the x and y of the bounds are generally 0)
@property(nonatomic) CGPoint center;
The position of the center of the control (with the upper left corner of the parent control as the origin)