Pixel size in iOS?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 257
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Pixel size in iOS?

Post by thatkeith » Mon Feb 17, 2014 11:48 pm

I'm having fun experimenting with creating stacks for iOS, and I'm okay with resizing vector objects. But having trouble figuring out how pixel sizes work...
I scaled an imported graphic in the IDE but it shows at the original size on the iPhone. I'm also a little confused as to what stack size I should be working with when making something for the iPhone 5 (for example).
Any pointers would be great!
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
360 VR media specialist

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 257
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Pixel size in iOS?

Post by thatkeith » Tue Feb 18, 2014 12:33 am

Answering my own posts - it's becoming a habit, sorry! (Also the first sign of madness...)
It looks like at least part of the answer to my question lies in the fullScreenMode property, including the info in the LC dictionary. It's getting late, I'll do tests the next time I have a chance.

Of course if anyone has comments please don't hold back!
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Pixel size in iOS?

Post by Dixie » Tue Feb 18, 2014 1:40 am

thatKeith...

With your image, it seems like you did not 'lock the position' of the image after you had scaled it. As for what size you should work with when building for the different iPhones... I use 320 x 480 for iphone 4 and 320 x 568 for iphone 5... (wait for the flames). I still find it easier to place objects when the stack first opens when building a stack that might run on a 4 or a 5, rather than using the fullScreenMode...

A simple stack attached... run it in the simulator for the 3.5" and for the 4"... the bottom group places nicely...

dixie
Attachments
phonesizes.livecode.zip
(1.75 KiB) Downloaded 66 times

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 257
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Pixel size in iOS?

Post by thatkeith » Sun Feb 23, 2014 8:22 pm

Thanks Dixie – I've grabbed the stack, I'll dig into it and learn. :)

Keith
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Post Reply

Return to “iOS Deployment”