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.
Iphone/ipad version detection
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Iphone/ipad version detection
Hi Pistris,
1. welcome to the forum!
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
1. welcome to the forum!

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
Klaus you are the best.
i had a brain fart
screenrect does the trick
Edd.
i had a brain fart
screenrect does the trick
Edd.