首页 > 其他 > 详细

UIView的常用方法

时间:2015-02-03 14:41:23      阅读:230      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!