=====oc=======
#ifdef DEBUG
NSLog(@"Debug 模式的代碼...");
#else
NSLog(@"Release 模式的代碼...");
#endif
=====swift========
swift項(xiàng)目默認(rèn)是不支持判斷的宾巍,沒有判斷標(biāo)識,需要配置-DDEBUG渔伯,與-DRELEASE
#if DEBUG
//Debug 模式的代碼.
#else
//Release模式的代碼
#endif
//參考:http://www.cnblogs.com/Bob-wei/p/5237761.html