Iphone/ipad version detection

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Iphone/ipad version detection

Post by Pistris » Thu Aug 06, 2015 7:25 pm

Hi guys.
quick question, maybe this has been asked a million times before but i couldn't find it.

i want to check the iphone(4/5/6/6+) or ipad model (for screen size purposes)
so i can hardcode the UI.

Thank you so much.

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

Re: Iphone/ipad version detection

Post by Klaus » Thu Aug 06, 2015 7:35 pm

Hi Pistris,

1. welcome to the forum! :D

2. Check "machine" in the dictionary!
This function will return the "general" type of hardware.

For detecting iPhone 4, 5, or or 6c or wahtever versions are around, not sure, maybe you can check
"the screenrect" and decide by these dimensions what iPhone exactly is running your app?


Best

Klaus

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: Iphone/ipad version detection

Post by Pistris » Thu Aug 06, 2015 7:40 pm

Klaus you are the best.
i had a brain fart
screenrect does the trick

Edd.

Post Reply