摘要: UIView的一些常用属性和方法 1. UIView的属性 UIView继承自UIResponder,拥有touches方法。 - (instancetype)initWithFrame:(CGRect)frame; 通过Frame来初始化一个UIView控件 @property(nonatomic 阅读全文
posted @ 2016-02-25 11:17 逆的态度 阅读(804) 评论(0) 推荐(0) 编辑
摘要: -(id)initWithFrame:(CGRect)frame - UIView的指定初始化方法; 总是发送给UIView去初始化, 除非是从一个nib文件中加载的; -(id)initWithCoder:(NSCoder *)coder - 从nib文件中加载的时候发送此消息给UIView; - 阅读全文
posted @ 2016-02-25 10:18 逆的态度 阅读(109) 评论(0) 推荐(0) 编辑