• 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:
  • 相关阅读:
    产品易用性
    优化Compress components with gzip 问题
    转:稳定性测试
    Xray CA证书
    转:获取WEB各阶段响应时间
    测试用例编写注意事项
    用dd把一个空硬盘写满
    转:linux终端命令使用cpu负载到100
    JMeter命令行执行+生成HTML报告
    防F12扒代码:按下F12关闭当前页面
  • 原文地址:https://www.cnblogs.com/changjiang/p/3064038.html
Copyright © 2020-2023  润新知