title: View controller transition error
body: <p>I am receiving this error after dismissing a multipeer connectivity window:</p>
  
  <pre><code>"Warning: Attempt to present &lt; AudioWaves.ViewControllerJoin: 0x176cf2d0&gt; on &lt; AudioWaves.ViewController: 0x17594de0&gt;  whose view is not in the window hierarchy!"
  </code></pre>
  
  <p>Here is my code below,</p>
  
  <pre><code>func browserViewControllerDidFinish(
      browserViewController: MCBrowserViewController!)  {
          // Called when the browser view controller is dismissed (ie the Done
          // button was tapped)
          let ViewControllerjoin:ViewControllerJoin = ViewControllerJoin()
  
          self.presentViewController(ViewControllerjoin, animated: true, completion: nil)
          dismissViewControllerAnimated(true, completion: nil)
  
  }
  </code></pre>
  
  <p>If I put the dismiss before the presenting of the new view controller the browser dismisses however the app simply brings to a blank black screen with no error.</p>