摘要: #import #define PATH1 @"/Users/aoyolo5/Desktop/文件管理"#define PATH2 @"/Users/aoyolo5/Desktop/文件管理/name.txt"#define PATH3 @"/Users/aoyolo5/Desktop/array.... 阅读全文
posted @ 2015-08-19 20:15 ios-C 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Student.h#import @interface Student : NSObject@property (nonatomic, copy) NSString *name;@property (nonatomic, assign) int ID;@endStudent.m#import "St... 阅读全文
posted @ 2015-08-19 20:13 ios-C 阅读(133) 评论(0) 推荐(0) 编辑
摘要: BoosProtocol.h#import //创建协议@protocol BoosProtocol @required//必须实现的方法-(NSInteger)buyWood;@optional//可选实现-(void)text3;@endWorkeProtocol.h#import @proto... 阅读全文
posted @ 2015-08-19 19:26 ios-C 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Person.h#import @interface Person : NSObject-(void)eat;@end//2.第二种方法//分类的声明//创建分类@interface ()@interface Person (MyCategory)-(void)run;@endPerson.m#i... 阅读全文
posted @ 2015-08-19 18:06 ios-C 阅读(143) 评论(0) 推荐(0) 编辑