orientation control
Posted: Sat Apr 30, 2011 10:25 pm
Hi: I've been using the following code to control orientation specific to each card (some are landscape and some are portrait, but none are both/either)
if the environment is "mobile" then
put "portrait,portrait upside down" into theallowed
iphoneSetAllowedOrientations theallowed
end if
And it does work, but when as soon as you navigate to the page. the page stays the same orientation until the iphone is turned - then the new orientation rules become effective and it stays that way.
Is there a better way to force the orientation?
if the environment is "mobile" then
put "portrait,portrait upside down" into theallowed
iphoneSetAllowedOrientations theallowed
end if
And it does work, but when as soon as you navigate to the page. the page stays the same orientation until the iphone is turned - then the new orientation rules become effective and it stays that way.
Is there a better way to force the orientation?