4

There are a ViewController = VC1, and two views , view1 = "A" , view2 = "B". View "A" do horizontal flip and turns to "B".

How do I solve the problem? Please, see the picture.

enter image description here

Voloda2
  • 12,359
  • 18
  • 80
  • 130
  • do you want to flip viewA and the thing you want after flip is viewA disappeared and viewB in place of viewA? –  Jun 24 '11 at 17:28
  • Jaminguy has the right answer. –  Jun 27 '11 at 17:36

1 Answers1

7
[UIView transitionFromView:view1 toView:view2 duration:1.0 options: UIViewAnimationOptionTransitionFlipFromLeft
                    completion: ^(BOOL inFinished) {
                        //do any post animation actions here
                }];
jaminguy
  • 25,840
  • 2
  • 23
  • 21
  • 1
    This flips the entire view controller. Is there a way to just flip subview A(just what's within the A box) to subview B(just what's within the B box)? – Ryan May 16 '13 at 18:53