#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...){}
#endif
打开Xcode -->>product -->scheme -->>edit scheme -->info 设置debug or release
iOS debug release,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/qingjoin/p/3842692.html