iOS images

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

iOS images

Post by anmldr » Thu Oct 04, 2012 3:04 am

I want to create an iOS app for all devices...older ones without the retina display and those with it. Let's say I create just an iPad version. In XCode, I would supply an image for each display with a naming convention of adding "@2x" to the name of the file. Then the proper image is supplied to the device automatically.

How do we handle this with LiveCode?

Linda

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS images

Post by gpb01 » Thu Oct 04, 2012 6:44 am

Hi Linda,
you have to ... manually manage :)

First, on your "preOpenStack" use the "iphoneUseDeviceResolution true, true" (... see the dictionary), next, with the "iphoneDeviceScale()" you can know if is a "standard" resolution (is 1) or a "retina" resolution (is 2) device and next ... once you know the device resolution, you can select the correct image to show ;)

Guglielmo

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: iOS images

Post by Klaus » Thu Oct 04, 2012 9:11 am

As we all should know by now, we have a special iOS forum! 8)
Will move this thread...

Post Reply