摘要: 1.触摸事件 1 #import "ViewController.h" 2 @interface ViewController () 3 @property (strong,nonatomic) UILabel *simple; 4 @end 5 6 @implementation ViewCont 阅读全文
posted @ 2016-01-27 20:39 恒远也 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1 #import "MyView.h" 2 3 @implementation MyView 4 5 -(instancetype)initWithFrame:(CGRect)frame 6 { 7 if (self = [super initWithFrame:frame]) { 8 _labl 阅读全文
posted @ 2016-01-27 20:12 恒远也 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.自定义视图 1 #import "MyView.h" 2 3 @implementation MyView 4 5 6 //重写父类的初始化方法 7 8 -(instancetype)initWithFrame:(CGRect)frame 9 { 10 if(self = [super init 阅读全文
posted @ 2016-01-27 20:06 恒远也 阅读(175) 评论(0) 推荐(0) 编辑