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 | 3,354 |
Apr 16, 2010 05:30 PM Last Post: Chris Burkhardt |
|
| iPhone simulator performance | Mister T | 10 | 5,283 |
Feb 14, 2010 08:10 PM Last Post: Zwilnik |
|
| Why do I see strange texture borders on Simulator but not on iPhone? | riruilo | 2 | 2,380 |
Oct 4, 2009 10:33 AM Last Post: riruilo |
|
| DEFINEs to know if I'm using simulator or iphone | riruilo | 2 | 2,349 |
Jan 10, 2009 04:19 PM Last Post: riruilo |
|
| iPhoneOS vs iPhone Simulator Framework Differences | Bachus | 0 | 2,437 |
Oct 31, 2008 10:54 PM Last Post: Bachus |
|

