#if TARGET_IPHONE_SIMULATOR //模拟器 #elif TARGET_OS_IPHONE //真机 #endif 转载于:https://www.cnblogs.com/lfh-francis/p/5443304.html