views:

234

answers:

0

Hello, all.

I've got next problem: i've got 3 UIViewController and need to switch controllers by UIModalTransitionStyleFlipHorizontal.

Next code working fine:

testController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:testController animated:YES];

where testController - next controller to switch, self - current controller.

And when i've set 3rd controller - it's working fine, but i have problem with back to first controller - when i back to first controller - i can't go to second controller.

1 -> 2 -> 3 -> 1 - it's working fine, but -> 2 - don't show.

what's mistake ?