title: Change view controller using action button
body: <p>How can I switch the view controller using <strong>UIButton</strong>? Here is my code:</p>
  
  <pre><code>@IBAction func scanAction(sender: AnyObject) {
        //switch view controller 
  }
  </code></pre>
  
  <p>When I click the Scan button, it will go to a login form. </p>
  
  <p>My view controller in <strong>Main.storyboard</strong> is like this</p>
  
  <p><img src="https://i.stack.imgur.com/VLVkw.png" alt="enter image description here"></p>
  
  <p>How might I proceed?</p>