// 是否iPad
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
if (isPad) {
} else {
}
如何判断设备是iPhone还是iPad
最新推荐文章于 2023-12-26 17:59:39 发布
// 是否iPad
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
if (isPad) {
} else {
}