Maybe it's a good idea to have this in AKU-iphone.mm at Line 128 (approx.)
- Code: Select all
- #import <UIKit/UIDevice.h>
- if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
- environment.SetValue ( MOAI_ENV_devPlatform, "iPad");
- else
- environment.SetValue ( MOAI_ENV_devPlatform, "iPhone");
so MOAIEnvironment.devPlatform spits out "iPad" or "iPhone".
Now you can use MOAIEnvironment.devPlatform and MOAIEnvironment.iosRetinaDisplay
for multi resolution setup.

