Yes, you can change the root controller of the window. Set the window property rootViewControllerto the new controller, and you're done. Do not forget that the first controller (the one you delete) will not receive messages viewWillDisappear:and viewDidDisappear:. Send them before switching controllers if you are interested in them.
source
share