which iPhone...

Randy Hengst iowahengst at mac.com
Mon Nov 10 12:28:05 EST 2014


I'm with you now… on the  iOS 8.1 simulator for all iPhone "machines" the screen rect is 0,0,480,320 for me. LC 6.6.5, Yosemite,

On Nov 10, 2014, at 11:03 AM, John Dixon <dixonja at hotmail.co.uk> wrote:

> 
> Hi Randy... 
> 
> The problem is that trying to get the screen rect using the ScreenRect function only returns the correct sizes for the iPhone 4 and iPhone 5... it returns the rect of an iPhone 5, 0,0,320,586 when trying to query for iPhone 6...
> 
> :-(
> 
>> 
>> Hi John,
>> 
>> I haven't messed with iPhone 6 yet, but here's what I've done to determine screen size for my opening card/image to show. I'm only using the landscape options for display
>> 
>> switch (word 1 of the machine)
>>      case "iPod"
>>      case "iPhone"
>>         if item 3 the screenRect = 568 or item 3 of the screenRect = 1136 then
>>            show image "CFS_Splash_iPod4_Retina_BLUE.png" on card "CoverCard"
>>         end if
>>         if item 3 the screenRect = 480 or item 3 of the screenRect = 960 then
>>            show image "CFS_Splash_iPod_Retina_BLUE.png" on card "CoverCard"
>>         end if
>>         break
>>      case "iPad"
>>         show image "CFS_Splash_iPad_Retina_Land_BLUE.png" on card "CoverCard"
>>         break
>>      default
>>         show image "CFS_Splash_iPad_Retina_Land_BLUE.png" on card "CoverCard"
>>         break
>>   end switch
>> 
>> be well,
>> randy
> 
> 		 	   		  
> _______________________________________________
> 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