IOS animateWithDuration和CATransition同时使用

各位好,我对以下的函数有点疑惑,为什么要使用两个动画效果

  [UIView
 animateWithDuration:0.3

 delay:0.0

 options:UIViewAnimationOptionCurveEaseInOut

 animations:^{

     CATransition *animation = ;

     ;

     ;

     ];

     ;

     

     ;

     ;

     ;



 }

 completion:^(BOOL finished) {



 }];
<p> </p>
直接使用<p></p>
<div><pre class="""brush:cpp;"" toolbar:="""" true;="""" auto-links:="""" false;"="""">CATransition *animation = ;



         ;



         ;



         ];



         ;



         



         ;



         ;



         ;

不就能实现动画效果了,请大神解释一下。谢谢