美文网首页
iPad 开发禁止横屏

iPad 开发禁止横屏

作者: 红色小星 | 来源:发表于2020-02-04 08:05 被阅读0次

1.在项目的target里设置【去除勾选支持的方向】,还需要勾选Full Screen选项【默认没有勾选,此时需要勾选】在 Target里面:

image.png
  1. AppDelegate里面:
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
        return .portrait
    }

相关文章

网友评论

      本文标题:iPad 开发禁止横屏

      本文链接:https://www.haomeiwen.com/subject/bwilxhtx.html