title: Method does not override any method from its superclass
body: <p>I try to implement two methods in viewcontroller</p>
  
  <pre><code>override func shouldAutorotate() -&gt; Bool {
      return false
  }
  
  override func supportedInterfaceOrientations() -&gt; Int {
      return UIInterfaceOrientation.Portrait.rawValue
  }
  </code></pre>
  
  <p>but I cannot because I get an error for second method that says </p>
  
  <pre><code>Method does not override any method from its superclass
  </code></pre>
  
  <p>If i remove override keyword I also get an error saying </p>
  
  <p><a href="https://i.stack.imgur.com/jULo2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jULo2.png" alt="enter image description here"></a></p>
  
  <p>What have I to do ?</p>