Transform app to universal app? (works both in iPhone/iPod Touch and iPad)
There's a way to transform my app to universal app?
This is to modify my application and make it work both on the iPhone/iPod touch and iPad, running natively on ipad with your screen proportion, etc..
PS: I know all iPhone app works on iPad, but works on iPhone's proportion, 320x480.
1 Answer
-
Accepted Answer
You could try using
Titanium.Platform.DisplayCaps
and check for the platformWidth or platformHeight to see what screen dimensions you are on, then act accordingly.see: https://developer.appcelerator.com/apidoc/mobile/1.2/Titanium.Platform.DisplayCaps
Or you could use just Titanium.Platform.model to see what type of device your app is on. [ https://developer.appcelerator.com/apidoc/mobile/1.2/Titanium.Platform ]
Another thing to think about when sizing things is to use the left and right properties, instead of setting a width. That way you could easily alter view/label sizes for any screen and in any orientation.