发布APP时去除NSLog打印


#ifdef __OPTIMIZE__ #define NSLog(...) #endif 注:以上代码需要修改发布模式为Release, (以Xcode4.2为例 做法如) Edit Scheme> Run xxx(程序名) > Destination 改成你要发布的iOS Device 或 模拟器 >info 选项卡 > build configuration > Release 选项



 
posted @ 2012-08-10 17:06  Mr.Songz  阅读(223)  评论(0编辑  收藏  举报