PrefixHeader.pch设置

来源:互联网 发布:淘宝商家人工电话 编辑:程序博客网 时间:2024/05/19 16:20

在Build settings —> PrefixHeader ,设置到工程文件那一级就好

调试DEBUG


#ifdef DEBUG


#define TSLog(...) NSLog(__VA_ARGS__)


#else


#define TSLog(...)


#endif


#define TSLogFunc TSLog(@"%s",__func__)


//RGB颜色

#define TSRGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]


#define TSGlobalBg TSRGBColor(223,223, 223)

0 0