如何使用Swift锁定仅主视图的肖像方向 [英] how to lock portrait orientation for only main view using swift

查看:80
本文介绍了如何使用Swift锁定仅主视图的肖像方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 swift 为iPhone创建了一个应用程序,该应用程序由嵌入在导航控制器中的许多视图组成.我想将主视图锁定为纵向,而将导航控制器的子视图锁定为横向. 这是我的意思的示例:

I have created an application for iPhone, using swift, that is composed from many views embedded in a navigation controller. I would like to lock the main view to Portrait orientation and only a subview of a navigation controller locked in Landscape orientation. Here is an example of what i mean:

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