title: Navigate to another view from Appdelegate through a UIButton
body: <p>I have the following issue. I have made a UIButton in my Appdelegate and I want that button navigate me to another ViewController. I already made a connection from my Storyboard, this connection is a type Modal Segue. I thought that performSegueWithIdentifier will do the job but it gives me the following error "has no segue with identifier 'showCamera' ". And I'm pretty sure that I have made that Identifier trough the Storyboard. </p>
  
  <pre><code>    let camera = UIButton.buttonWithType(UIButtonType.Custom) as UIButton
       camera.addTarget(self, action: "takePicture:", forControlEvents: .TouchUpInside);
  
      //this function works 
      func takePicture(sender: UIButton!){
          println("Open Camera")
  
      //this throws an error        
  
  self.window?.rootViewController?.performSegueWithIdentifier("showCamera", sender: self) 
          }
  </code></pre>