常量

1: __OPTIMIZE__区分debug和release环境。

#ifdef __OPTIMINE__
// release 执行
#else
// debug 执行
#end


#ifndef __OPTIMINE__
// debug 执行
#else
// release 执行
#end

2: TARGET_IPHONE_SIMULATOR 是否是模拟器。

原文地址:https://www.cnblogs.com/jisa/p/13158952.html