I am working on an application in which I call presentModalViewController and after its completion (call dismissModalViewControllerAnimated:YES ) it should immediately call popToRootViewControllerAnimated .
But the dismissModalViewControllerAnimated:YES problem works fine, but popToRootViewControllerAnimated does not work after it.
The code is shown below:
[self.navigationController dismissModalViewControllerAnimated:YES] ; [self.navigationController popToRootViewControllerAnimated:YES];
ios objective-c navigationcontroller
sathish kumar
source share