iPad 开发禁止横屏

2020-02-04  本文已影响0人  红色小星

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

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

上一篇 下一篇

猜你喜欢

热点阅读