IOS-& lt; project notes & gt; Summary of common attributes of UI controls

Source: Internet
Author: User

@ Property (nonatomic, getter = isUserInteractionEnabled) BOOL userInteractionEnabled;

@ Property (nonatomic) NSInteger tag;

@ Property (nonatomic) CGRect frame;

@ Property (nonatomic) CGRect bounds;

@ Property (nonatomic) CGPoint center;

@ Property (nonatomic) CGAffineTransform transform;

@ Property (nonatomic, readonly) UIView * superview;

@ Property (nonatomic, readonly, copy) NSArray * subviews;

 

@ Property (nonatomic, copy) NSString * text;

@ Property (nonatomic, retain) UIFont * font;

@ Property (nonatomic, retain) UIColor * textColor;

@ Property (nonatomic) NSTextAlignment textAlignment;

@ Property (nonatomic) NSInteger numberOfLines;

 

@ Property (nonatomic, retain) UIImage * image;

@ Property (nonatomic, copy) NSArray * animationImages;

@ Property (nonatomic) NSTimeInterval animationDuration;

@ Property (nonatomic) NSInteger animationRepeatCount;

 

@ Property (nonatomic) CGPoint contentOffset;

@ Property (nonatomic) CGSize contentSize;

@ Property (nonatomic) UIEdgeInsets contentInset;

@ Property (nonatomic, assign) id <UIScrollViewDelegate> delegate;

 

(The previous blogs have detailed attribute descriptions and usage.) For details, refer to the previous blogs.

(The previous blogs have detailed attribute descriptions and usage.) For details, refer to the previous blogs.

@ Property (nonatomic, getter = isEnabled) BOOL enabled;

-(Void) addTarget :( id) target action :( SEL) action forControlEvents :( UIControlEvents) controlEvents;

 

   

@ Property (nonatomic) UIDatePickerMode datePickerMode;

@ Property (nonatomic, retain) NSLocale * locale;

@ Property (nonatomic, retain) NSDate * date;

 

 

@ Property (nonatomic, getter = isOn) BOOL on;

-(Void) setOn :( BOOL) on animated :( BOOL) animated;

 

 

@ Property (nonatomic, readonly) NSUInteger numberOfSegments;

@ Property (nonatomic) NSInteger selectedSegmentIndex;

 

@ Property (nonatomic) float value;

@ Property (nonatomic) float minimumValue;

@ Property (nonatomic) float maximumValue;

 

 

+ (Id) buttonWithType :( UIButtonType) buttonType;

@ Property (nonatomic) UIEdgeInsets contentEdgeInsets;

@ Property (nonatomic, readonly, retain) UILabel * titleLabel;

@ Property (nonatomic, readonly, retain) UIImageView * imageView;

 

-(Void) setTitle :( NSString *) title forState :( UIControlState) state;

-(Void) setTitleColor :( UIColor *) color forState :( UIControlState) state;

-(Void) setImage :( UIImage *) image forState :( UIControlState) state;

-(Void) setBackgroundImage :( UIImage *) image forState :( UIControlState) state;

 

-(NSString *) titleForState :( UIControlState) state;

-(UIColor *) titleColorForState :( UIControlState) state;

-(UIImage *) imageForState :( UIControlState) state;

-(UIImage *) backgroundImageForState :( UIControlState) state;

 

 

-(Id) initWithTitle :( NSString *) title message :( NSString *) message delegate :( id/* <region> */) delegate cancelButtonTitle :( NSString *) cancelButtonTitle otherButtonTitles :( NSString *) otherButtonTitles ,... NS_REQUIRES_NIL_TERMINATION;

 

-(Void) show;

Clear Saup

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.