Pushing the same view controller instance more than once is not supportedHi, i have one normal UIViewCOntroller(home) in which i have IBAction Method like
- (IBAction)goto1:(id)sender
{
self. goto1Controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:self. goto1Controller animated:YES];
}
it works fine. goto1Controller is a normal UIViewcontroller in which i have used one action through userdefined Navigation controller through which i go to another controller like in self.goto1Controller
- (IBAction)goto2:(id)sender
{
[userdefNavController pushViewController:goto2Controller animated:YES];
[self presentModalViewController: userdefNavController animated:NO];
}
i come back from goto2Controller to goto1Controller through
[self dismissModalViewControllerAnimated:YES];
it works fine...but when i use this same method([self dismissModalViewControllerAnimated:YES];) to go to home i have to press twice... and also when i press - (IBAction)goto2:(id)sender again after coming from goto2Controller crash is happened..error also "Pushing the same view controller instance more than once is not supported" any solution? i have in my viewdidload as
userdefNavController = [[UINavigationController alloc] initWithRootViewController:self];