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?