Page 1 of 1

Iphone/ipad version detection

Posted: Thu Aug 06, 2015 7:25 pm
by Pistris
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.

Re: Iphone/ipad version detection

Posted: Thu Aug 06, 2015 7:35 pm
by Klaus
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

Re: Iphone/ipad version detection

Posted: Thu Aug 06, 2015 7:40 pm
by Pistris
Klaus you are the best.
i had a brain fart
screenrect does the trick

Edd.