orientation in iOS 8.1 simulator

Klaus major-k klaus at major-k.de
Sun Oct 26 13:10:36 EDT 2014


Hi Sean,

> Am 26.10.2014 um 17:45 schrieb Sean Cole (Pi) <sean at pidigital.co.uk>:
> 
> Hi Klaus,
> 
> I was getting this too (from some time ago). There is a delay in the
> message between 'orientationChanged' to updating the
> 'mobileDeviceOrientation' value. So, what I do is:
> 
> on orientationChanged
>        send "checkOrientation" to me in 20 millisec
> end orientationChanged
> 
> on checkOrientation
>        set the rect of fld "Testfield" to the rect of this cd
>        put CR & CR & mobileDeviceOrientation() into fld "Testfeld"
> end checkOrientation
> 
> You can fiddle with the 'send' timing but 20 seems to suit me. It has been
> highlighted to the RR team as far as I am aware but don't know if it is yet
> fixed (obviously not). Maybe you can update Bugzilla if you find it.
> 
> Hope this helps you out - Nice to return the favour to you at last from the
> number of times you've helped me out :-)

At your service, sire! :-)

Thank you, will try this!

> All the best
> 
> 
> 
> Sean Cole

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list