zoukankan      html  css  js  c++  java
  • iOS中的Block动画

    // block动画1

       /*

        [UIView animateWithDuration:1 animations:^(void) {

       

            [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];

            [UIView setAnimationDelegate:self];

            view1.center = CGPointMake(0, 0);

        }];

     

        // block动画2

    /*

        [UIView animateWithDuration:1 animations:^(void){

           

            [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];

            view1.center = CGPointMake(0, 0);

           

        } completion:^(BOOL finished) {

           

            NSLog(@"finished");

        }];

    */

     

      // block动画3

       /*

        [UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionRepeat animations:^(void) {

           

            view1.center = CGPointMake(0, 0);

           

        } completion:^(BOOL finished) {

            NSLog(@"finished");

        }];

         */

       

        // block动画4

       

        [UIViewtransitionFromView:view2toView:view1duration:1options:UIViewAnimationOptionTransitionFlipFromTopcompletion:^(BOOL finished) {

            NSLog(@"finished");

        }];

     

    • animateWithDuration:delay:options:animations:completion:
    • animateWithDuration:animations:completion:
    • animateWithDuration:animations:
    • transitionWithView:duration:options:animations:completion:
    • transitionFromView:toView:duration:options:completion:
  • 相关阅读:
    安装python包
    在RHEL5.4上升级Python
    IronPython开发Windows Form程序总结
    Windows下手动配置Oracle Client的要点
    dreampie一个很不错的python命令行交互工具
    Eclipse插件汇总
    pyDbRowFactory Python版Db Row Factory
    如何让Jython自动加载一个Jar包
    跨计算机执行的几个方法
    Python 版 Instance Activator
  • 原文地址:https://www.cnblogs.com/changjiang/p/3064038.html
Copyright © 2011-2022 走看看