title: How to perform segue from inside UIView
body: <p>How can a prepare a segue properly from inside a UIView <strong><em>NOT</strong> UIViewController</em></p>
  
  <p>My UIViewController has a container view and inside that container view has a button.</p>
  
  <pre><code>class myInnerView: UIView {
      ...
      func myButton(gesture: UIGestureRecognizer){
          //calling a perform segue from another UIViewController does not recognize the SegueID
          //ViewController().self.showProfile(self.id) -- DOES NOT WORK
      }
  }
  
  class ViewController: UIViewController {
      ...
      func showProfile(id: String){
          ...
          self.performSegueWithIdentifier("toViewProfile", sender: self)
      }
  }
  </code></pre>