UIView过渡 - 翻转两个子视图

时间:2013-04-04 22:50:10

标签: ios uiview uiviewanimation uiviewanimationtransition

在UIView子类(mainView)中,我这样做:

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

     }
     ];

然而,整个视图翻转。我只想翻转firstView和secondView,它们是mainView的子视图。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

试试这个

 options:UIViewAnimationOptionTransitionFlipFromTop
 completion:NULL