title: Programmatically going from one ViewController to another
body: <p>I've set this button up programmatically and I've been trying to figure out how, when it is pressed to segue to another <code>ViewController</code>. I've been trying to look up the type of code I would need for that to happen. I can't seem to find any.</p>
  
  <pre><code>import UIKit
  
  class ViewController: UITableViewController {
  
      override func viewDidLoad() {
      super.viewDidLoad()
  
      let image = UIImage(named: "Camera.png") as UIImage!
      let button = UIButton.buttonWithType(UIButtonType.System) as! UIButton
      button.frame = CGRectMake(self.view.frame.width / 2 - 30, self.view.frame.size.height - 70, 70, 70)
      button.setImage(image, forState: .Normal)
      self.navigationController?.view.addSubview(button)
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
  }
  </code></pre>
  
  <p>This is how I have it set-up could someone please either direct me to the right type of code I need to use or give me an example. Thank you</p>