title: How to display a webview in a landscape viewcontroller in swift?
body: <p>I have a <code>viewcontroller</code> which contains only a <code>webview</code>. However, contents of this webview are very wide, so I need to show this in <code>landscape</code> mode. </p>
  
  <p>The question is how to rotate the webview or whole view controller?</p>
  
  <p>I tried to change the <code>orientations</code> like this but didn't work:</p>
  
  <pre><code>override func preferredInterfaceOrientationForPresentation() -&gt; UIInterfaceOrientation {
      return .LandscapeLeft
  }
  
  override func supportedInterfaceOrientations() -&gt; UIInterfaceOrientationMask {
      return .Landscape
  }
  </code></pre>