title: Swift / How to properly dismiss a rootViewController?
body: <p>In one of my views I'm creating a rootViewController with:</p>
  
  <pre><code>    dispatch_async(dispatch_get_main_queue()) {
  
          let pageController = UIPageViewController(transitionStyle: .Scroll, navigationOrientation: .Horizontal, options: nil)
          let nav = RootDJasUserVC(rootViewController: pageController)
  
          appDelegate.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  
          appDelegate.window?.rootViewController = nav
          appDelegate.window?.makeKeyAndVisible()
  
      }
  </code></pre>
  
  <p><strong>Withing</strong> a View of <code>RootDJasUserVC</code> I'm calling  another function to get to another rootViewController:</p>
  
  <pre><code>    dispatch_async(dispatch_get_main_queue()) {
  
          let pageController = UIPageViewController(transitionStyle: .Scroll, navigationOrientation: .Horizontal, options: nil)
          let nav = RootVC(rootViewController: pageController)
  
          appDelegate.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  
          appDelegate.window?.rootViewController = nav
          appDelegate.window?.makeKeyAndVisible()
  
      }
  </code></pre>
  
  <p>Not I want to go back to <code>RootDJasUserVC</code>, but I want <code>RootDJasUserVC</code> to be completely new loaded. Currently when I'm going back to <code>RootDJasUserVC</code> (with the same function as in the first code block), <code>viewDidLoad</code> will not be executed, because the view is obviously still loaded somewhere.</p>
  
  <p>How to I properly "dismiss" a rootViewController like that, to have it "reloaded"? Help is very appreciated.</p>
  
  <p>PS. What I would like to do is something like this within <code>RootDJasUserVC</code>:</p>
  
  <pre><code>dismissViewControllerAnimated(true, completion: nil)
  </code></pre>
  
  <p>But nothings happening when I execute that.</p>
  
  <p>PPS. Those rootViewControllers are sublasses of <code>UINavigationController</code></p>