iPhone or Simulator
Is there a way for your code to know if its on the devise or on the simulator, theres something i want to run differently depending on if its on hardware or not. Thanks for any answers
According to this Apple document, you can use the TARGET_IPHONE_SIMULATOR preprocessor define to distinguish between simulator and device.
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
Most preferred iPhone simulator? | TimMcD | 5 | 5,910 |
Apr 16, 2010 05:30 PM Last Post: Chris Burkhardt |
|
iPhone simulator performance | Mister T | 10 | 10,259 |
Feb 14, 2010 08:10 PM Last Post: Zwilnik |
|
Why do I see strange texture borders on Simulator but not on iPhone? | riruilo | 2 | 4,342 |
Oct 4, 2009 10:33 AM Last Post: riruilo |
|
DEFINEs to know if I'm using simulator or iphone | riruilo | 2 | 4,069 |
Jan 10, 2009 04:19 PM Last Post: riruilo |
|
iPhoneOS vs iPhone Simulator Framework Differences | Bachus | 0 | 3,970 |
Oct 31, 2008 10:54 PM Last Post: Bachus |