Nevergp
V2EX  ›  iPhone

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

  •  
  •   Nevergp · Apr 18, 2016 · 15742 views
    This topic created in 3822 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
        1
    Zero24  
       Apr 18, 2016
    General 中 Devices 选择 iPhone

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

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