title: Make instance of view controller and segue to it programatically
body: <p>I have two view controllers in my storyboard: <code>view1</code> and <code>view2</code>.</p>
  
  <p>In <code>view1</code>, I used the storyboard to make a segue from its tableview to <code>view2</code>.</p>
  
  <p>But now in <code>view2</code>, I have programmatically created a button, and it is supposed to segue to another instantiated <code>view2</code>.</p>
  
  <p>When the button is clicked, I made a function to execute:</p>
  
  <pre><code>func buttonPressed(sender: UIButton){
    //TODO:- GET NEXT PAGE
    self.performSegueWithIdentifier("anotherView2", sender: sender)
  }
  
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if(segue.identifier == "anotherView2"){
      let anotherView2Controller = segue.destinationViewController as! View2
      ...
      ...
    }
  }
  </code></pre>
  
  <p>Of course it does not work, since there is no segue identifier called <code>anotherView2</code>. So I want to make it somehow, but I really cannot find good way to manage this. </p>
  
  <p>Is there anyway to create the segue programmatically? I tried to make the segue from storyboard, but since the button is created programatically, I cannot segue to <code>view2</code> to <code>view2</code>.</p>