iOS YYModel 源码 解析 (YYModel.h)

YYModel.h

1. #if __has_include(<YYModel/YYModel.h>)
2. FOUNDATION_EXPORT double YYModelVersionNumber;
3. FOUNDATION_EXPORT const unsigned char YYModelVersionString[];
4. #import <YYModel/NSObject+YYModel.h>
5. #import <YYModel/YYClassInfo.h>
6. #else
7. #import "NSObject+YYModel.h"
8. #import "YYClassInfo.h"
9. #endif
复制代码
1. #if __has_include(<YYModel/YYModel.h>)
复制代码

翻译:判断可否引入 <YYModel/YYModel.h>
备注:__has_include() 传入引入文件的名称,能引入返回1,不能返回0。bash


2. FOUNDATION_EXPORT double YYModelVersionNumber;
3. FOUNDATION_EXPORT const unsigned char YYModelVersionString[];
复制代码

翻译:声明 版本号和版本号字符串
备注:FOUNDATION_EXPORTpost


4. #import <YYModel/NSObject+YYModel.h>
5. #import <YYModel/YYClassInfo.h>

7. #import "NSObject+YYModel.h"
8. #import "YYClassInfo.h"
复制代码

翻译:引入 NSObject+YYModel.h 和 YYClassInfo.h
备注:import""、import<>的区别spa

相关文章
相关标签/搜索