Monday 18 July 2011

Check if Running on Simulator

How to add an if to check if you are running on the simulator:


#if TARGET_IPHONE_SIMULATOR
   NSLog(@"APPIRATER NOTE: not supported on the iOS simulator.");
#else
   // Do Live stuff
#endif


Source

1 comment: