pch文件的使用

2016-04-02  本文已影响71人  苹果API搬运工

1.新建.pch文件

1.png

2.pch中写入内容

#ifdef __OBJC__

    #import "UIImage+Render.h"

    #import "UIView+XYWH.h"

    #define ABCD 10

    #ifdef DEBUG //调试

    #define MYFunc MYLog(@"%s",__func__)

    #define MYLog(...) NSLog(__VA_ARGS__)

    #else //发布

    #define MYLog(...)

    #endif

#endif

3.查找pch文件的存放路径( 相对路径)

4.png
上一篇下一篇

猜你喜欢

热点阅读