判断程序运行的设备类型IPad

判断程序运行在IPad上面还是IPhone上面。

if(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad)//if the app run at iphone divice

{

}

else 

{

}

THE END !

原文地址:https://www.cnblogs.com/xingchen/p/2147501.html