2

In a UIView subclass (mainView) I do this:

[UIView transitionFromView:firstView
                        toView:secondView
                      duration:3
                       options:UIViewAnimationOptionTransitionFlipFromTop | UIViewAnimationCurveEaseIn | UIViewAnimationOptionShowHideTransitionViews
                    completion:^(BOOL finished)
     {

     }
     ];

However, the entire view flips. I just want to flip firstView and secondView, which are subviews of mainView. How do I fix this?

soleil
  • 12,133
  • 33
  • 112
  • 183
  • Found the answer [here][1]. The subviews need a container view. [1]: http://stackoverflow.com/questions/9524048/how-to-flip-an-individual-uiview-without-flipping-the-parent-view?rq=1 – soleil Apr 04 '13 at 23:08

1 Answers1

0

try this

 options:UIViewAnimationOptionTransitionFlipFromTop
 completion:NULL
dhaya
  • 1,522
  • 13
  • 21
  • can you provide the complete statement? this only looks like two options of the method call – Stuart M Apr 05 '13 at 07:19
  • [UIView transitionFromView:oldView toView:newView duration:1.0 options:UIViewAnimationOptionTransitionFlipFromLeft completion:NULL]; – dhaya Apr 05 '13 at 10:43