I am currently working on a multi-platform application for iPhone and other devices. As far as I can tell, I can use preprocessor directives to check if I'm building an iPhone or another platform, so for example, I could
#if WINDOWS_PHONE ScreenRes = new Vector2(800,480); #endif #if XBOX360 ScreenRes = new Vector2(1280,720); #endif
However, I'm not sure which ad I should use to check on the iPhone, I have already tried IPHONE, IOS, I_PHONE and a few others.
tweetypi
source share