摘要:
在.pch里添加:#ifdef DEBUG_MODE #define NSLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )#else #define NSLog( s, ... ) #endif然后debug 的get info 里preprocessor macros DEBUG 阅读全文
posted @ 2011-07-13 10:03
fairycao
阅读(208)
评论(0)
推荐(0)
浙公网安备 33010602011771号