Make sure the simulator
#if TARGET_IPHONE_SIMULATOR
Make sure the device
#if !(TARGET_IPHONE_SIMULATOR)
Check how
#if TARGET_IPHONE_SIMULATOR // Simulator #else // Device #endif
Note that you should not ifdef on TARGET_IPHONE_SIMULATOR , because it will always be specified either 1 or 0 .
hfossli Sep 11 '14 at 10:09 2014-09-11 10:09
source share