I have 2 view (view A and view B).
In viewA when I touch a button I execute this code to flip a viewB:
viewB.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:viewB animated:YES];
And now when I came back to viewA I use this code:
[self dismissModalViewControllerAnimated: YES]; //here is my problem
I need to set same parameters to viewA when I execute dismiss. How can I do it?
EDIT I have not found any solution and I used a pushNavigation in this way:
FirstViewController *viewA = [self.storyboard instantiateViewControllerWithIdentifier:@"myView"];
// Effettuo il push alla view successiva
[self.navigationController pushViewController:viewA animated:YES];