which iPhone...
John Dixon
dixonja at hotmail.co.uk
Mon Nov 10 17:16:43 EST 2014
Now I am a little confused ...
xCode 6.0, OSX 10.9.5, LC 7.0, iOS 8 simulator
Let me be a little pedantic here in my explanation. I have prepared a stack at a size of 320 x 480... It has one button with the following script...
on mouseUp
answer the screenRect of this stack
end mouseUp
If I choose Hardware > Devices > iPhone 4s running in the simulator returns 0,0,320,480
If I choose Hardware > Devices > iPhone 5s running in the simulator returns 0,0,320,568
but...
If I choose Hardware > Devices > iPhone 6 running in the simulator returns 0,0,320,568
It is at this point that I expected to see 0,0,375,667...
I am more than a little confused!
Dixie
> From: gerry.orkin at gmail.com
> Date: Mon, 10 Nov 2014 21:27:31 +0000
> Subject: Re: which iPhone...
> To: use-livecode at lists.runrev.com
>
> Randy's code gives me a screen rect of 0,0,375,667 on an iOS 8 iPhone 6
> simulator. Those are the correct values (remember for the iPhone 6 and 6+
> you need to multiply by 2x and 3x respectively). The code also works
> accurately on a 4s and 5s simulator.
>
> Thanks Randy!
>
> Gerry
>
> On Tue Nov 11 2014 at 5:03:48 AM Randy Hengst <iowahengst at mac.com> wrote:
>
> > Xcode 5.1, OSX 10.8.5, LC6.5, iOS 7.1 Simulator... this code in StartUp
> > shows correct dimensions... I don't have iOS 8 simulator on this mac.
> >
> >
> > on startUp
> >
> > answer (word 1 of the machine)
> >
> > iphoneSetAllowedOrientations "landscape left,landscape right"
> > --portrait,portrait upside down,landscape left,landscape right
> >
> > switch (word 1 of the machine)
> > case "iPod"
> > case "iPhone"
> > set the fullscreenmode of this stack to "exactFit"
> > --"letterbox"--"noScale" -- "exactFit" --"letterbox" --empty --
> > --"exactfit" --"showAll"
> > break
> > end switch
> >
> > answer the ScreenRect
> > end startUp
> >
> >
> > On Nov 10, 2014, at 11:35 AM, John Dixon <dixonja at hotmail.co.uk> wrote:
> >
> > >
> > >
> > >> Subject: Re: which iPhone...
> > >> From: jacque at hyperactivesw.com
> > >> Date: Mon, 10 Nov 2014 11:12:32 -0600
> > >> To: use-livecode at lists.runrev.com
> > >>
> > >> Does it work if you omit "working" and just ask for the screenrect?
> > >>
> > > Hi Jacque...
> > >
> > > No it doesn't...
> > >
> > > Dixie
> > >
> > > _______________________________________________
> > > 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
> >
> > _______________________________________________
> > 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
> >
> _______________________________________________
> 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