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