CATranstion动画

 // 1.创建过度动画
    CATransition *anima = [CATransition animation];
    // 2.设置动画类型
    anima.type = @"cube";
    anima.subtype = kCATransitionFromRight;
    // 3.设置动画时间
    anima.duration = 3;
    anima.startProgress = 0.5;
    anima.endProgress = 0.8;
    // 4.添加动画
    [self.view.layer addAnimation:anima forKey:nil];

type类型有:

  1. animation.type = kCATransitionFade;  
  2.   
  3. animation.type = kCATransitionPush;  
  4.   
  5. animation.type = kCATransitionReveal;  
  6.   
  7. animation.type = kCATransitionMoveIn;  
  8.   
  9. animation.type = @"cube";  
  10.   
  11. animation.type = @"suckEffect";  
  12.   
  13. // 页面旋转  
  14. animation.type = @"oglFlip";  
  15.   
  16. //水波纹  
  17. animation.type = @"rippleEffect";  
  18.   
  19. animation.type = @"pageCurl";  
  20.   
  21. animation.type = @"pageUnCurl";  
  22.   
  23. animation.type = @"cameraIrisHollowOpen";  
  24.   
  25. animation.type = @"cameraIrisHollowClose";  
原文地址:https://www.cnblogs.com/yintingting/p/4693314.html