zoukankan      html  css  js  c++  java
  • 【代码笔记】iOS-页面之间的跳转效果

    一,工程图。

    二,代码。

    RootViewController.m

    复制代码
    -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    {
        
        /*
         1,不使用动画
         UIViewAnimationTransitionNone
         
         2,从左向右旋转翻页
         UIViewAnimationTransitionFlipFromLeft
         
         3,从右向左旋转翻页,与UIViewAnimationTransitionFlipFromLeft相反
         UIViewAnimationTransitionFlipFromRight
         
         4,卷曲翻页,从下往上
         UIViewAnimationTransitionCurlUp
         
         5,卷曲翻页,从上往下
         UIViewAnimationTransitionCurlDown
         */
    
        FirstViewController *firstVC=[[FirstViewController alloc]init];
        
        [UIView  beginAnimations:nil context:NULL];
        //置动画块中的动画属性变化的曲线
        [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
        //设置持续时间
        [UIView setAnimationDuration:0.5];
        //设置过渡的动画效果
        [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
        
        [self.navigationController pushViewController:firstVC animated:YES];
        //提交动画
        [UIView commitAnimations];
    
        
    }
    复制代码

     

     

     
     
  • 相关阅读:
    Summarizing NUMA Scheduling两篇文章,解释得不错
    VCAP5-DCA – What’s new?
    NUMA总结。
    NUMA and vNUMA
    NUMA
    vsphere 5.1 性能最佳实践。
    vsphere性能
    mysql的事务,隔离级别和锁
    mysql5.7 生成列 generated column
    mysql8 公用表表达式CTE的使用
  • 原文地址:https://www.cnblogs.com/yang-guang-girl/p/5665674.html
Copyright © 2011-2022 走看看