Recently, I had to try to detect if I was running on the iPhone Simulator. Here is the code I came up with. Please for you to enjoy...
NSString* model= [[UIDevice currentDevice] model];
NSString* simulator = @"iPhone Simulator";
if ([model compare:simulator] == NSOrderedSame)
{
//Simulator!
}
-Jon
|