iOS开发中常用的各种动画、页面切面效果

2020-01-15 14:14:56王旭


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;

     效果如下:

 iOS开发,动画,页面切面

    (3).揭开效果:


case Reveal:
[self transitionWithType:kCATransitionReveal WithSubtype:subtypeString ForView:self.view];
break; 

    效果图如下:

  iOS开发,动画,页面切面

    (4).覆盖效果


case MoveIn:
[self transitionWithType:kCATransitionMoveIn WithSubtype:subtypeString ForView:self.view];
break;

      效果图如下:

iOS开发,动画,页面切面

   (5).立方体效果


case Cube:
[self transitionWithType:@"cube" WithSubtype:subtypeString ForView:self.view];
break; 

    效果如下:

   iOS开发,动画,页面切面