Xcode 开发 iOS app ,如何配置该 app 只运行在 iphone 上而不是在 ipad 上?
1
Zero24 Apr 18, 2016
General 中 Devices 选择 iPhone
即使选择 iPhone, app 也能在 iPad 上面运行. 只不过屏幕不适配,比例为 iPhone 上面的比例 |
2
zingl Apr 18, 2016
检测设备不符提示退出
瞎说的 |
3
zqqf16 Apr 18, 2016
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
{ abort(); } |
4
lerosua Apr 18, 2016
如此这样似乎过不了审核,许多 app 苹果是用 ipad 来测的
|
5
agegcn Apr 18, 2016
苹果审核用的是 ipad 9.7
|
6
loveuqian Apr 18, 2016
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) |
7
fengyunSmlie Apr 18, 2016
审核好像有一项 是要求在 iPad 上也是能看的吧
|
8
qq2511296 Apr 18, 2016
iOS 的 app 绝对要能在 ipad 上运行的 不能限制 iPhone 的 app 在 ipad 上运行 会有个 X2 的按钮 可以放大 2 倍运行,必须要能运行在 ipad 上
|
9
chairuosen Apr 18, 2016
过不了审核
|
10
wezzard Apr 18, 2016
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
destroy_the_world(); } |
11
Deeer Apr 19, 2016
一楼正解
|
12
jinxiansen Apr 21, 2016
真是智商捉急,
除了一楼外,全牛头不对马嘴, 楼主问的是什么,你们回答的是什么。 就这智商。 |