如何判断设备是iPhone还是iPad

830 阅读1分钟
// 是否iPad
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)


//这样一来,只需要在代码中