摘要: 1、类别与扩展: 类别能增加功能,不能定义变量。。类别就是在“ @interface 类名()”,“@implementation 类名()”括号里加东西的;扩展不能增加功能,能定义变量。。类名后面加括号就代表扩展,标示可以在下面定义实例变量。2、实例变量就是成员变量,全局变量是定义在类外面的变... 阅读全文
posted @ 2014-08-27 22:11 未景 阅读(165) 评论(0) 推荐(0) 编辑
摘要: MyScrollView.h@property (nonatomic,assign) NSInteger currentPage;@property (nonatomic,strong) NSInteger (^numberOfPage)(MyScrollView *);@property (non... 阅读全文
posted @ 2014-08-21 14:13 未景 阅读(386) 评论(0) 推荐(0) 编辑