zoukankan      html  css  js  c++  java
  • 转场动画部分名词解释

    一、注释
       //创建核心动画 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];

  • 相关阅读:
    asp.net文件操作类
    MSMQ是什么?
    Type.GetType()在跨程序集反射时返回null的解决方法
    ASP.NET反射
    VS单元测试入门实践教程
    详解Linq to SQL
    .Net资源文件全球化
    正则表达式使用详解
    C# 中的委托和事件详解
    python基础
  • 原文地址:https://www.cnblogs.com/tony0571/p/5460112.html
Copyright © 2011-2022 走看看