I can detect that app is running under iOS Simulator (using sysctlbyname("hw.machine")), but how do I know if it is iPad of iPhone simulator?
Of course I may check [UIScreen mainScreen].bounds, but probably there are more elegant way?
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.
Whoops, just found that
[[UIDevice currentDevice] model]gives what I need.