Possible Duplicate:
Best way to programmatically detect iPad/iPhone hardware
How can I differentiate the iPad and iPhone programmatically?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems for me that the question is a duplicate, but I’ll try to brief all I know about device type and iOS version detection.
There are several methods based on which information you want to receive, whether it just device type (iPhone, iPod or iPad) or iOS version.
Here is code for detecting device type (returns i386 in case of Simulator):
And here is iOS version detector:
And OS detector for compiler:
Also, nobody proibits us to use