码迷,mamicode.com
首页 > 其他好文 > 详细

UIView的常用方法

时间:2015-02-03 14:42:04      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace>

+ (Class)layerClass; 

- (instancetype)initWithFrame:(CGRect)frame; 

//是否可点击

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

 @property(nonatomic,readonly,retain)                 CALayer  *layer; 

 

@interface UIView(UIViewGeometry)

//仿射变化

@property(nonatomic) CGAffineTransform transform; 

@property(nonatomic) CGFloat           contentScaleFactor NS_AVAILABLE_IOS(4_0);

@property(nonatomic,getter=isMultipleTouchEnabled) BOOL multipleTouchEnabled;

@property(nonatomic,getter=isExclusiveTouch) BOOL       exclusiveTouch; 

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event; 

- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event; 

 

- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;

- (CGPoint)convertPoint:(CGPoint)point fromView:(UIView *)view;

- (CGRect)convertRect:(CGRect)rect toView:(UIView *)view;

- (CGRect)convertRect:(CGRect)rect fromView:(UIView *)view;

 

@property(nonatomic) BOOL               autoresizesSubviews;

@property(nonatomic) UIViewAutoresizing autoresizingMask; 

- (CGSize)sizeThatFits:(CGSize)size;   

- (void)sizeToFit;  

 

 

 

 

UIView的常用方法

标签:

原文地址:http://www.cnblogs.com/qzp2014/p/4269716.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!