title: How to connect a button made in UITableVC to show a separate view in Story Board
body: <p>I am working on a small project with a few separate view controllers on my storyboard, and have have created a button the shows a <code>UITableViewController</code>, but I needed a way for the user to get back to the home page. I have created a button on top of the <code>MainTableVC</code>, and when I run the app, it shows the button. What I need is for the button to simply show my main view controller which is called just view controller. I am still learning so every step forward is a leap for me. Here is the code of the <code>viewDidLoad</code>, where I created the button. </p>
  
  <pre><code>let button1 = UIButton(frame: CGRect(origin: CGPoint(x: self.view.frame.width / 2 - 25, y: self.view.frame.height - 70), size: CGSize(width: 50, height: 50)))
  button1.backgroundColor = UIColor.blue
  
  self.navigationController?.view.addSubview(button1)
  </code></pre>
  
  <p>I also do have a <code>UITableViewController</code> listed in the class. Thank you everyone for your help, I appreciate it. So to summarize, I need to connect the <code>button1</code> I created to the viewcontroller, (because you can not just put a button on top of a tableview and then just control click to the other view and set "show". That actually makes it easier to say, I need to code the aspect of simply cntrl dragging from one button to a view and setting "show". Thanks so much everyone.</p>