What will [[UIDevice currentDevice] model] return for “iPad”?
Share
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.
You can use
UI_USER_INTERFACE_IDIOM(), which will either returnUIUserInterfaceIdiomPhoneorUIUserInterfaceIdiomPad. Bear in mind that on any device < 3.2, this is unavailable, so first check to see whether the property can be retrieved – in this case, it is not an iPad.Or, alternatively, to specifically work out whether the platform is an iPad or not, use
Hope this helps 😉