转场动画部分名词解释

一、注释
   //创建核心动画 CATransition *ca=[CATransition animation]; //告诉要执行什么动画 //设置过度效果 ca.type=@"cube"; //设置动画的过度方向(向左) ca.subtype=kCATransitionFromLeft; //设置动画的时间 ca.duration=2.0; //添加动画

    二、例子:界面A  push到 界面B 

    CATransition *ca = [CATransition animation];

            ca.type = @"fade";       // 渐变

            ca.type = @"push";   

            ca.type = @"reveal";  

            ca.type = @"cube";        // 方块

            ca.type = @"suckEffect";     // 像一张桌布被抽走

            ca.type = @"pageUnCurl";   // 合书页效果

            ca.type = @"rippleEffect";   // 水滴起波纹的效果

            ca.type = @"pageCurl";      // 翻书页效果    

    ca.subtype = @"fromLeft";

    ca.subtype = @"fromRight";

            ca.subtype=@"fromBottom";

            ca.duration = 2.0;

            [self.navigationController pushViewController:jsAdsVC animated:NO];

            [self.navigationController.view.layer addAnimation:ca forKey:nil];

原文地址:https://www.cnblogs.com/tony0571/p/5460112.html