只有纵向模式不适用于 iPad/Xcode/SwiftUI [英] Only portrait mode not working for iPad / Xcode / SwiftUI

查看:32
本文介绍了只有纵向模式不适用于 iPad/Xcode/SwiftUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序仅使用纵向模式.它在 iPhone 上运行良好.但在 iPad 上也有横向模式.但我也只想要 iPad 的纵向模式.我该怎么办?

删除这3行

I use only portrait mode for my App. Its working fine for iPhone. But on iPad there is also the landscape mode. But I also want only Portrait mode for iPad. What should I do? enter image description here

解决方案

open your plist file like a source code

Delete in this 3 lines

这篇关于只有纵向模式不适用于 iPad/Xcode/SwiftUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆