title: Dismiss and Present View Controller in Swift
body: <p>Hi I'm trying to present a viewcontroller and dismiss my current modal view but this code is not working</p>
  
  <pre><code>self.dismissViewControllerAnimated(true, completion: {
      let vc = self.storyboard?.instantiateViewControllerWithIdentifier("OrderViewController")
      self.presentViewController(vc!, animated: true, completion: nil)
  })
  </code></pre>
  
  <p>vice versa is not working too on completion block of presentviewcontroller</p>
  
  <p>EDIT: replaced vc! to self</p>