摘要:
UIView的一些常用属性和方法 1. UIView的属性 UIView继承自UIResponder,拥有touches方法。 - (instancetype)initWithFrame:(CGRect)frame; 通过Frame来初始化一个UIView控件 @property(nonatomic 阅读全文
摘要:
-(id)initWithFrame:(CGRect)frame - UIView的指定初始化方法; 总是发送给UIView去初始化, 除非是从一个nib文件中加载的; -(id)initWithCoder:(NSCoder *)coder - 从nib文件中加载的时候发送此消息给UIView; - 阅读全文