摘要:
#import #define PATH1 @"/Users/aoyolo5/Desktop/文件管理"#define PATH2 @"/Users/aoyolo5/Desktop/文件管理/name.txt"#define PATH3 @"/Users/aoyolo5/Desktop/array.... 阅读全文
摘要:
Student.h#import @interface Student : NSObject@property (nonatomic, copy) NSString *name;@property (nonatomic, assign) int ID;@endStudent.m#import "St... 阅读全文
摘要:
BoosProtocol.h#import //创建协议@protocol BoosProtocol @required//必须实现的方法-(NSInteger)buyWood;@optional//可选实现-(void)text3;@endWorkeProtocol.h#import @proto... 阅读全文
摘要:
Person.h#import @interface Person : NSObject-(void)eat;@end//2.第二种方法//分类的声明//创建分类@interface ()@interface Person (MyCategory)-(void)run;@endPerson.m#i... 阅读全文