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

4 天前
 taxze

请教一下 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 限制横屏操作应该怎么做?然后提交审核的时候是否需要单独说明一下?

486 次点击
所在节点    问与答
3 条回复
NatsukiSubaru
4 天前
“希望 app 可以在 iphone 上竖屏操作,在 ipad 限制横屏操作”
info.plist 里面设置或者代码控制都行,上架的话应该不需要单独说明
daiisdai
4 天前
默认竖屏,判断设备代码强制横屏不行吗
finab
4 天前
优先调整你的布局代码,iPad 4:3 的比例,怎么会横竖屏就导致布局错乱呢,按理说横竖屏都没大区别。

一定要这样做就实现 AppDelegate 的 supportedInterfaceOrientationsFor 方法,iPhone 只允许竖屏 ,iPad 只允许横屏

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://ex.noerr.eu.org/t/1142699

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX