在UIView子类(mainView)中,我这样做:
[UIView transitionFromView:firstView
toView:secondView
duration:3
options:UIViewAnimationOptionTransitionFlipFromTop | UIViewAnimationCurveEaseIn | UIViewAnimationOptionShowHideTransitionViews
completion:^(BOOL finished)
{
}
];
然而,整个视图翻转。我只想翻转firstView和secondView,它们是mainView的子视图。我该如何解决这个问题?
答案 0 :(得分:0)
试试这个
options:UIViewAnimationOptionTransitionFlipFromTop
completion:NULL