摘要: #import "Person.h"#import "Book.h"#import "Student.h"#import "Dog.h"#import int main(int argc, const char * argv[]) { @autoreleasepool { //*... 阅读全文
posted @ 2015-11-10 19:33 开心刘哈哈 阅读(137) 评论(0) 推荐(0) 编辑
摘要: //结构://main.m 1 #import 2 #import "Rent1.h" 3 #import "Rent2.h" 4 #import "Rent3.h" 5 #import "Person.h" 6 7 int main(int argc, const char * argv[])... 阅读全文
posted @ 2015-11-10 19:19 开心刘哈哈 阅读(148) 评论(0) 推荐(0) 编辑
摘要: //ProtocolClass.h#import //声明一个协议:@protocol+协议名+满足的基协议@protocol MyselfDelegate @required//修饰的方法为必须实现的方法-(void)helloProtocolForR;@optional//修饰的方法为可选实现的... 阅读全文
posted @ 2015-11-10 19:03 开心刘哈哈 阅读(182) 评论(0) 推荐(0) 编辑
摘要: //Study.m文件声明1 #import 2 3 @interface Study : NSObject4 5 -(void)study; 6 7 @end//Study.h文件实现 1 #import "Study.h" 2 3 @interface Study ()//偷偷声明 4 5 ... 阅读全文
posted @ 2015-11-10 18:51 开心刘哈哈 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.单例:nsfilemanager2.私有属性: @private3.内存:内存管理 1>.alloc,retain,copy,new2>.黄金法则4.继承和类目的拓展区别5.NSNotification(通知)和KVO(键-值监听)的区别6.延展: //延展性,实现方法私有化@in... 阅读全文
posted @ 2015-11-10 18:36 开心刘哈哈 阅读(129) 评论(0) 推荐(0) 编辑