which iPhone...
J. Landman Gay
jacque at hyperactivesw.com
Mon Nov 10 12:12:32 EST 2014
Does it work if you omit "working" and just ask for the screenrect?
On November 10, 2014 3:18:10 AM CST, John Dixon <dixonja at hotmail.co.uk> wrote:
>In the case of testing in the 'iPhone Simulator' ... How do you
>determine which iPhone the stack is supposed to be running on ? Up
>until now I have used something like this :-
>
>on openStack
> if environment() = "mobile" then
> whichiPhone
>end openStack
>
>command whichiPhone
> if item 4 of the working screenrect = 568 then
> — do stuff here for a iPhone 5
> end if
>
> if item 4 of the working screenrect = 480 then
> — do stuff here for an iPhone 4
> end if
>end whichiPhone
>
>but the 'screenrect' function does not return the correct response for
>the iPhone 6 or the iPhone 6 Plus as the function just treats it as if
>it were an iPhone 5...
>
>thanks...
>
>_______________________________________________
>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
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list