title: Is it possible to have an AlertViewController be presented after another?
body: <p>I want to have a <code>UIAlertViewController</code> that presents some text, and when you click "ok" it causes another <code>UIAlertController</code> to pop up and it will present the user with two options to choose from (go to main, restart game). this is the code I wrote and it brings up this error: </p>
  
  <blockquote>
    <p>"2015-11-16 22:29:21.438 MemoryCardGameTest_01[1917:46708] Warning:
    Attempt to present   on
     which is already
    presenting (null)"</p>
  </blockquote>
  
  <pre><code> func showWinMessage() {
  
      let userMessage = UIAlertController(title: "Victory! you win with... clicks \(ref2.clickCounter) and \(ref2.timeCounter) seconds", message: "", preferredStyle: UIAlertControllerStyle.Alert);
  
      let action = UIAlertAction(title: "ok", style: UIAlertActionStyle.Default) { (action: UIAlertAction!) -&gt; Void in
  
      }
  
      userMessage.addAction(action);
  
      self.presentViewController(userMessage, animated: true, completion: nil);
  
  
      println("victory achieved");
  
  
  }
  
  func showUserMessage(){
      let newMessage = UIAlertController(title: "whatwouldyouliketodonext?", message: "", preferredStyle: UIAlertControllerStyle.Alert);
  
      let goToUI = UIAlertAction(title: "goToUI", style: UIAlertActionStyle.Default) { (action: UIAlertAction!) -&gt; Void in
          println("gotoUI was clicked");
  
      }
  
      let playAgain = UIAlertAction(title: "PlayAgain", style: UIAlertActionStyle.Default) { (action: UIAlertAction!) -&gt; Void in
          println("playAgain was clicked");
      }
  
      newMessage.addAction(goToUI);
      newMessage.addAction(playAgain);
  
      self.presentViewController(newMessage, animated: true, completion: nil);
  
  
  }
  </code></pre>