Here is my interrogation :
When my app starts a first view controller is loaded, then on top of it a login or signinUp view controller is loaded depending on user choice, then I replace the rootviewcontroller this way :
var vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ProposeOrChooseViewController") as ProposeOrChooseViewController
let window = UIApplication.sharedApplication().windows[0] as UIWindow
window.rootViewController = vc
UIView.transitionFromView(
window.rootViewController!.view,
toView: vc.view,
duration: 0.65,
options: .TransitionCrossDissolve,
completion: {finished in
window.rootViewController = vc
})
Are all the viewcontrollers/views destroyed and removed from the views stack when replacing the rooviewcontroller ?