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:
  • 相关阅读:
    复制带有random指针的单链表
    loadrunner常见问题
    【转】性能测试、负载测试、压力测试的区别
    文件存储结构inode与RAM结构建立联系
    inode表元数据,存储在物理存储体上
    debug宏起作用应用
    linux内核常用函数或宏
    file、inode在应用层和驱动层之间的联系_转
    内核交互--sysfs
    内核交互--procfs
  • 原文地址:https://www.cnblogs.com/changjiang/p/3064038.html
Copyright © 2011-2022 走看看