I\'m using multiple screens in my app. I wrote code for the moving from the first screen to the second screen, the second screen to the third screen, and so on up to the fif
[self.navigationController popToRootViewControllerAnimated:YES];
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:0] animated:YES];
You can use second line code then verify the index of view controller.
and you have memory problem so please verify the any object release or not.