---
title: "代码控制以不同屏幕方向打开新页面"
author: "linwwwei"
date: "2015-09-15T11:46:56Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2015-09-15T11:46:56Z"
id: 2243541
url: "https://linwwwei.iteye.com/blog/2243541"
---

```
UIDevice.currentDevice().setValue(UIInterfaceOrientation.LandscapeLeft.rawValue, forKey: "orientation")
```

 

 

 

http://www.cocoachina.com/ios/20150810/12895.html