V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
taxze
V2EX  ›  问与答

ios 上架,如果想在 iPhone 上实现竖屏操作,在 iPad 限制横屏操作怎么做

  •  
  •   taxze · 3 天前 · 484 次点击

    请教一下 V 社大神

    前两天在 appstore 上架一款 app ,刚刚收到审核说在 ipad 上样式乱了:

    Guideline 4.0 - Design

    Several screens of the app were crowded, laid out, or displayed in a way that made it difficult to use the app when reviewed on iPad Air (5th generation) running iPadOS 18.5.

    Next Steps

    To resolve this issue, revise the app to ensure that the content and controls on the screen are easy to read and interact with.

    Note that users expect apps they download to function on all the devices where they are available. Since your app may be downloaded onto iPad devices, it is important that it also function as expected for iPad users.

    Resources

    如果我希望 app 可以在 iphone 上竖屏操作,在 ipad 限制横屏操作应该怎么做?然后提交审核的时候是否需要单独说明一下?

    3 条回复    2025-07-03 12:25:04 +08:00
    NatsukiSubaru
        1
    NatsukiSubaru  
       3 天前
    “希望 app 可以在 iphone 上竖屏操作,在 ipad 限制横屏操作”
    info.plist 里面设置或者代码控制都行,上架的话应该不需要单独说明
    daiisdai
        2
    daiisdai  
       3 天前 via Android
    默认竖屏,判断设备代码强制横屏不行吗
    finab
        3
    finab  
       3 天前
    优先调整你的布局代码,iPad 4:3 的比例,怎么会横竖屏就导致布局错乱呢,按理说横竖屏都没大区别。

    一定要这样做就实现 AppDelegate 的 supportedInterfaceOrientationsFor 方法,iPhone 只允许竖屏 ,iPad 只允许横屏
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5950 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.