iOS app simulation rotated?
Graham Samuel
livfoss at mac.com
Fri May 31 06:07:59 EDT 2013
Thanks for the input - I just found the problem. I have started using Scott Rossi's tmControl for buttons etc to give a better look to my app. I didn't know this, but the setup within his subsystem puts this line into a preOpenCard handler of the first card to be opened after the splash:
> iphoneSetAllowedOrientations (the tmControlData["allowedOrientations"] of this stack)
If I comment this out, then the problem goes away.
I had not myself used a preOpenCard handler in this card, so I didn't know the script was there! This is not to blame Scott: it's all because I have only just started using tmControl, so put it down to ignorance on my part. So far I don't know why this line is needed or where it gets its information from, but I will find out very shortly!
Thanks anyway for your response.
Graham
On 31 May 2013, at 11:43, Paul Maguire wrote:
> On 31 May 2013, at 10:32, Graham Samuel wrote:
>> Thanks Randy - I hadn't thought of this. Tried it just now and sadly it doesn't work. The simulation used to work, even without this line of script (maybe with another simulator, since I haven't worked on this one for quite a time).
>
>
> You say it doesn't work now after typing in that line - are you sure it's all formatted and spelled correctly?!? iPhone sim will just fail if it's not. Just a thought.
> In my preOpenStack handler I used:
> mobileAllowedOrientations("portrait,portrait upside down")
> ... for a portrait app.
>
> Another thing - check your Standalone Application Settings/Orientation options.
>
> Kind regards, Paul.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list