Intuitive programming for multiple devices.

natedawgghnatedawggh Member, PRO Posts: 34
edited April 2014 in Working with GS (Mac)

I have two versions of my app... one for iPhones and one for iPad. This really is only because of a few elements that are so out of place on the screen of the iPad, mostly menu items and buttons. So the other day I tried to program those element's x and y coordinates to place themselves in relation to the screen, using the "device" or "screen size" input. It seems that "Screen" is really just the dimensions of your project, and the "device" inputs were bringing back crazy numbers that aren't anywhere close the dimensions of the display, so I was having to multiply the returned numbers by factors like 1.44, and this didn't even place them correctly on other devices. I would love to have one app for all devices, does anyone know how code these elements to automatically place themselves correctly no matter what device it's appearing on?

Thanks!

Comments

Sign In or Register to comment.