title: move to next view controller programmatically
body: <p>I wonder how to create a function that move to the login page after click login button, with code/programmatic way.</p>
  
  <p>There is my code:</p>
  
  <pre><code>final class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let loginButton = UIButton(frame: CGRectMake(20, 640, 175, 75))
          loginButton.setTitle("Login", forState: UIControlState.Normal)
          loginButton.backgroundColor = UIColor.init(red: 255, green: 215, blue: 0, alpha: 0.8)
          loginButton.setTitleColor(UIColor.blackColor(), forState: UIControlState.Normal)
          loginButton.titleLabel!.font = UIFont(name: "StarJediSpecialEdition", size: 30)
          loginButton.addTarget(self,
                                action: #selector(ViewController.tapActionButton),
                                forControlEvents: UIControlEvents.TouchUpInside)
          self.view.addSubview(loginButton)
      }
  
      func tapActionButton(sender:UIButton!) {
          print("Button is working")
      }
  }
  </code></pre>