iPhone SDK Tips & Tricks
#if !(TARGET_IPHONE_SIMULATOR) NSLog(@"iphone");#else NSLog(@"simulator");#endif