<span id="Label3"> </p><pre class="brush:objc;gutter:true;">/** * Initializes a UI control with a frame */-(id) initwithframe: (cgrect) frame;//YES: ability to interact with the user @property (nonatomic,getter= Isuserinteractionenabled) BOOL userinteractionenabled; A tag for the default is Yes//control (the parent control can find the corresponding child control via Tag) @property (nonatomic) Nsinteger tag; The default is 0//layer (which you can use to set the fillet effect \ Shadow Effect) @property (nonatomic,readonly,retain) calayer *layer; @end @in Terface UIView (uiviewgeometry)//position and size (in the Upper-left corner of the parent control is the coordinate Origin (0, 0)) @property (nonatomic) cgrect frame;//position and size (sitting in the upper left corner of your The origin point (0, 0)) @property (nonatomic) cgrect bounds;//midpoint (in The Upper-left corner of the parent control is the coordinate Origin (0, 0)) @property (nonatomic) cgpoint C Enter Deformation properties (pan \ Zoom \ Rotate) @property (nonatomic) cgaffinetransform transform; Default is cgaffinetransformidentity//YES: supports multi-touch @property (nonatomic,getter=ismultipletouchenabled) BOOL multipletouchenabled; Default is No@end@interface UIView (uiviewhierarchy)//parent control @property (nonatomic,readonly) UIView *superview;//child Control (new The added controls are subview by defaultAfter the S array, the newly added control is displayed by default on top \ topmost) @property (nonatomic,readonly,copy) nsarray *subviews;//gets The window@property of the current control ( Nonatomic,readonly) UIWindow *window;//remove A control from the parent Control-(void) removefromsuperview;//add a child control ( You can insert child controls into the Subviews array, index this position)-(void) insertsubview: (UIView *) view atindex: (nsinteger) index;// Swap the position of the child controls held in the Subviews array-(void) exchangesubviewatindex: (nsinteger) index1 withsubviewatindex: (nsinteger) index2;// Add a child control (the newly added control is defaulted to the Subviews array, and the newly added control is displayed by default on top \ topmost)-(void) addsubview: (UIView *) view;//add A child control view ( Blocked under Siblingsubview)-(void) insertsubview: (UIView *) view belowsubview: (UIView *) siblingsubview;//add A child control view ( Cover on top of Siblingsubview)-(void) insertsubview: (UIView *) view abovesubview: (UIView *) siblingsubview;//pull A child control to the top (topmost) To Display-(void) bringsubviewtofront: (UIView *) view;//to pull a child control to the bottom (the bottommost) to Display-(void) sendsubviewtoback: (UIView *) view;/** System Automatic call (left to subclass to Implement) **/-(void) didaddsubview: (UIView *) subview;-(void) willremovesubview: (UIView *) subview;-(void) Willmovetosuperview: (UIView *) Newsuperview;-(void) didmovetosuperview;-(void) willmovetowindow: (uiwindow *) newwindow;-(void) didmovetowindow;/** system automatically calls **/// is not the child control of the view, or child control of the child control (whether It is a descendant of View)-(BOOL) Isdescendantofview: (UIView *) view; Returns YES for self.//to get the corresponding child control (or child control of child Controls) by Tag-(UIView *) viewwithtag: (nsinteger) tag; Recursive Search. Includes self/** system automatic call (left to subclass to implement that is to Rewrite) the **///control's frame changes when it is called, generally here overrides the layout child control position and Size//rewrite This write method, must call [super Layoutsubviews];-(void) layoutsubviews; @end @interface UIView (uiviewrendering)/YES: content that extends beyond the bounds of the Control's borders is cut off @property ( Nonatomic) BOOL clipstobounds;//background color @property (nonatomic,copy) uicolor *ba ckgroundcolor; Default is nil//transparency (0.0~1.0) @property (nonatomic) cgfloat alpha; Default is 1.0//YES: opaque no: transparent @property (nonatomic,getter=isopaque) BOOL opaque; Default is Yes//YES: hide NO: show @property (nonatomic,getter=ishidden) BOOL hidden;//content mode @prOperty (nonatomic) Uiviewcontentmode contentmode; Default is Uiviewcontentmodescaletofill@end@interface UIView (uiviewanimationwithblocks) + (void) Animatewithduration: (nstimeinterval) Duration delay: (nstimeinterval) delay options: (UIVIEWANIMATIONOPTIONS) options Animations: (void (^) (void)) animations completion: (void (^) (BOOL finished)) completion;+ (void) animatewithduration: ( Nstimeinterval) duration animations: (void (^) (void)) animations completion: (void (^) (BOOL FINISHED)) completion;+ (void ) animatewithduration: (nstimeinterval) duration animations: (void (^) (void)) animations;+ (void) animatewithduration: ( Nstimeinterval) duration delay: (nstimeinterval) delay usingspringwithdamping: (cgfloat) dampingratio initialspringvelocity: (cgfloat) Velocity options: (uiviewanimationoptions) options animations: (void (^) (VOID)) Animations completion: (void (^) (BOOL FINISHED)) completion; @end</pre><p><p> </p></p><p><p>IOS UIView header file partial translation</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service