#if TARGET_IPHONE_SIMULATOR
NSLog(@"run on simulator");
#else
NSLog(@"run on device");
#endif
#if TARGET_IPHONE_SIMULATOR
NSLog(@"run on simulator");
#else
NSLog(@"run on device");
#endif
本文标题:使用TARGET_IPHONE_SIMULATOR和TARGET
本文链接:https://www.haomeiwen.com/subject/ahujxktx.html
网友评论