iPhone app running on iPad
Posted: Thu Apr 18, 2013 7:01 pm
I have an app built for iPhone-only.
I would like to show it on the iPad, using the 2x/1x resize feature (like with normal iPhone apps that you can open on an iPad).
When I open my app on the iPad I get the small iPhone window centered in the middle and the 2x button in the bottom right - good.
However, it only displays the top left corner of my cards.
Is there something in my stack script that I can tweak to make this view properly on the iPad?
Thanks.
Stack Script:
local sPlayerId
on preopenStack
if the environment is "mobile" then
iphoneUseDeviceResolution "true" -- For Retina True Display (doesn't work in openStack)
--Portrait , Portrait Upside Down , Landscape , Landscape Right are the 4 Parameters to be passed in the function iphoneSetAllowedOrientations
put "portrait,portrait upside down,landscape,landscape right" into theallowed
-- Function Call
set the acceleratedRendering of this stack to "true"
iphoneSetAllowedOrientations theallowed
mobileLockOrientation
else
exit preopenStack
put iphoneDeviceResolution() into tScreenResolution
go to card "Main Menu"
end if
end preOpenStack
I would like to show it on the iPad, using the 2x/1x resize feature (like with normal iPhone apps that you can open on an iPad).
When I open my app on the iPad I get the small iPhone window centered in the middle and the 2x button in the bottom right - good.
However, it only displays the top left corner of my cards.

Thanks.
Stack Script:
local sPlayerId
on preopenStack
if the environment is "mobile" then
iphoneUseDeviceResolution "true" -- For Retina True Display (doesn't work in openStack)
--Portrait , Portrait Upside Down , Landscape , Landscape Right are the 4 Parameters to be passed in the function iphoneSetAllowedOrientations
put "portrait,portrait upside down,landscape,landscape right" into theallowed
-- Function Call
set the acceleratedRendering of this stack to "true"
iphoneSetAllowedOrientations theallowed
mobileLockOrientation
else
exit preopenStack
put iphoneDeviceResolution() into tScreenResolution
go to card "Main Menu"
end if
end preOpenStack