iPhone development: what will [[UIDevice currentDevice] model] return for “iPad”? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What will [[UIDevice currentDevice] model] return for "iPad"? 回答1: You can use UI_USER_INTERFACE_IDIOM() , which will either return UIUserInterfaceIdiomPhone or UIUserInterfaceIdiomPad . Bear in mind that on any device < 3.2, this is unavailable, so first check to see whether the property can be retrieved - in