zoukankan      html  css  js  c++  java
  • 判断当前的动画已经完成,以便进行后记的动作

    参考代码:

    [UIView beginAnimations:@"animationID" context:nil];

    [UIView setAnimationDuration:0.3];

    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

    [UIView setAnimationRepeatAutoreverses:NO];

    m_image.frame = CGRectMake(0, 0, 1024, 768);

    [UIView setAnimationDelegate:self];//设置动画的委托

    [UIView commitAnimations];//开始动画


    动画的委托并不多。


    //动画结束后调用的函数

    - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag

    {

      for(UIView *m_view in [self.view subviews])

      {

          if ([m_view isKindOfClass:[UIImageView class]])

          {

            [m_view removeFromSuperview];

         }

      }

    }

    THE END !

  • 相关阅读:
    $.getJSON()
    seconds
    ini_set
    validation
    component
    ini_set();
    长期阅读英文技术博客的好处
    用xml还是json
    单​手​打​字
    洛谷P1141 01迷宫
  • 原文地址:https://www.cnblogs.com/xingchen/p/2173436.html
Copyright © 2011-2022 走看看