[UIDevice currentDevice] model]可以判断机型;
[UIDevice currentDevice] currentMode] 判断屏幕分辨率;
if
(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
//ipad
}
else
{
//other
}

本文详细介绍了如何使用Objective-C代码片段来判断当前设备的机型与屏幕分辨率,包括针对iPad和平板电脑的特殊识别方法。
6261

被折叠的 条评论
为什么被折叠?



