【发布时间】:2011-06-22 22:35:16
【问题描述】:
如何在 Xcode 中构建应用程序以防止它安装在 iPad 上?我在这里看到的相关问题的答案似乎是指在 Xcode 4 中不再适用的设置和过程。
【问题讨论】:
标签: build xcode4 installation app-store distribution
如何在 Xcode 中构建应用程序以防止它安装在 iPad 上?我在这里看到的相关问题的答案似乎是指在 Xcode 4 中不再适用的设置和过程。
【问题讨论】:
标签: build xcode4 installation app-store distribution
很遗憾,无法阻止在特定类型的设备上安装应用程序。
但阻止 iPad 用户使用该应用程序的一种廉价而肮脏的方法是签入appDelegate:
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
//UIAlertView this app will not run on iPad
}
比UIAlertView代表:
exit();
这将导致应用无法在 iPad 上运行。
【讨论】: