iOS如何停止视图旋转 [英] iOS how to stop view rotate

查看:70
本文介绍了iOS如何停止视图旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的iPad应用程序在您旋转iPad时停止旋转。我想停止旋转每个视图。

I want my iPad app to stop rotation as you rotate the iPad. I want to stop rotate every view.

任何想法都有帮助吗?

推荐答案

如果你想为整个应用程序停止旋转,那么只需在app info.plist文件中更改支持的界面方向初始界面方向属性为纵向或横向取决于你

if you want stop rotation for whole app then simply in app info.plist file changed Supported interface orientations ,Initial interface orientation property to portrait or landscape depends on you

这篇关于iOS如何停止视图旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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