zoukankan      html  css  js  c++  java
  • 页面切换效果

     TwoDView *twoD  =[[TwoDView alloc]init];
        CATransition *animation = [CATransition animation];
        [animation setDuration:0.4];
        [animation setType: kCATransitionPush];
        [animation setSubtype: kCATransitionFromLeft];
        [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]];
        [self.navigationController pushViewController:twoD animated:NO];
        [self.navigationController.view.layer addAnimation:animation forKey:nil];
        [twoD release];
    
     CATransition *animation = [CATransition animation];
        [animation setDuration:0.4];
        [animation setType: kCATransitionPush];
        [animation setSubtype: kCATransitionFromRight];
        [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]];
    //    [self.navigationController popViewControllerAnimated:YES];
        //[self.navigationController pushViewController:threeD animated:NO];
        [self.navigationController.view.layer addAnimation:animation forKey:nil];
        [self.navigationController popViewControllerAnimated:NO];
  • 相关阅读:
    一个优秀的博主 有助于前端进阶
    JS异步的理解以及promise
    node-sass出错
    vuecli脚手架搭建
    GitHub上传项目方法
    ES6转ES5
    webpack---安装与卸载
    CSS之BFC详解
    Vue.js学习 --环境搭建
    python is和==的区别
  • 原文地址:https://www.cnblogs.com/jiackyan/p/3436765.html
Copyright © 2011-2022 走看看