摘要:
1、类别与扩展: 类别能增加功能,不能定义变量。。类别就是在“ @interface 类名()”,“@implementation 类名()”括号里加东西的;扩展不能增加功能,能定义变量。。类名后面加括号就代表扩展,标示可以在下面定义实例变量。2、实例变量就是成员变量,全局变量是定义在类外面的变... 阅读全文
摘要:
MyScrollView.h@property (nonatomic,assign) NSInteger currentPage;@property (nonatomic,strong) NSInteger (^numberOfPage)(MyScrollView *);@property (non... 阅读全文