title: How to lock orientation just for one view controller?
body: <p>Can I set a portrait orientation and lock orientation just in one controller?</p>
  
  <p>I did try:</p>
  
  <pre><code>override func supportedInterfaceOrientations() -&gt; Int {
      return Int(UIInterfaceOrientationMask.Portrait.rawValue)
  }
  
  override func shouldAutorotate() -&gt; Bool{
      return false
  }
  </code></pre>
  
  <p>but it doesn't help me. Must I to add anything else?</p>