Nevergp
V2EX  ›  iPhone

Xcode 开发 iOS app,如何配置该 app 只运行在 iPhone 上而不是在 iPad 上?

  •  
  •   Nevergp · Apr 18, 2016 · 15940 views
    This topic created in 3854 days ago, the information mentioned may be changed or developed.
    Xcode 开发 iOS app ,如何配置该 app 只运行在 iphone 上而不是在 ipad 上?
    12 replies  •  2016-04-21 10:19:01 +08:00
    Zero24
    Zero24
    Apr 18, 2016
    1
    General 中 Devices 选择 iPhone

    即使选择 iPhone, app 也能在 iPad 上面运行. 只不过屏幕不适配,比例为 iPhone 上面的比例
    zingl
    zingl
    Apr 18, 2016
    2
    检测设备不符提示退出

    瞎说的
    zqqf16
    zqqf16
    Apr 18, 2016
    3
    if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
    {
    abort();
    }
    lerosua
    lerosua
    Apr 18, 2016
    4
    如此这样似乎过不了审核,许多 app 苹果是用 ipad 来测的
    agegcn
    agegcn
    Apr 18, 2016
    5
    苹果审核用的是 ipad 9.7
    loveuqian
    loveuqian
    Apr 18, 2016
    6
    #define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    #define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
    fengyunSmlie
    fengyunSmlie
    Apr 18, 2016
    7
    审核好像有一项 是要求在 iPad 上也是能看的吧
    qq2511296
    qq2511296
    Apr 18, 2016
    8
    iOS 的 app 绝对要能在 ipad 上运行的 不能限制 iPhone 的 app 在 ipad 上运行 会有个 X2 的按钮 可以放大 2 倍运行,必须要能运行在 ipad 上
    chairuosen
    chairuosen
    Apr 18, 2016
    9
    过不了审核
    wezzard
    wezzard
    Apr 18, 2016
    10
    if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
    destroy_the_world();
    }
    Deeer
    Deeer
    Apr 19, 2016
    11
    一楼正解
    jinxiansen
    jinxiansen
    Apr 21, 2016
    12
    真是智商捉急,
    除了一楼外,全牛头不对马嘴,
    楼主问的是什么,你们回答的是什么。
    就这智商。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2156 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 14:28 · PVG 22:28 · LAX 06:28 · JFK 09:28
    ♥ Do have faith in what you're doing.