【发布时间】:2015-06-24 16:19:54
【问题描述】:
我想以编程方式设置 ViewController 方向,并在关闭 ViewController 后我希望方向返回到以前的模式
这是我目前使用的:
if(GamePrefrences.orientation == "landscape")
{
value = UIInterfaceOrientation.LandscapeLeft.rawValue
}
else
{
value = UIInterfaceOrientation.Portrait.rawValue
}
【问题讨论】:
标签: ios swift uiviewcontroller