switch (animationType)
{
//各种Case,此处代码下面会给出
}
3.调用我们封装的运动方法,来实现动画效果
(1),淡化效果
case Fade:
[self transitionWithType:kCATransitionFade WithSubtype:subtypeString ForView:self.view];
break;
(2).Push效果
case Push:
[self transitionWithType:kCATransitionPush WithSubtype:subtypeString ForView:self.view];
break;
效果如下:
(3).揭开效果:
case Reveal:
[self transitionWithType:kCATransitionReveal WithSubtype:subtypeString ForView:self.view];
break;
效果图如下:
(4).覆盖效果
case MoveIn:
[self transitionWithType:kCATransitionMoveIn WithSubtype:subtypeString ForView:self.view];
break;
效果图如下:
(5).立方体效果
case Cube:
[self transitionWithType:@"cube" WithSubtype:subtypeString ForView:self.view];
break;
效果如下:













