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