• iOS----------弹窗动画


    - (void)animationAlert:(UIView *)view

    {

        CAKeyframeAnimation *popAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform"];

        popAnimation.duration = 0.4;

        popAnimation.values = @[[NSValue valueWithCATransform3D:CATransform3DMakeScale(0.01f, 0.01f, 1.0f)],

                                [NSValue valueWithCATransform3D:CATransform3DMakeScale(1.1f, 1.1f, 1.0f)],

                                [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.9f, 0.9f, 1.0f)],

                                [NSValue valueWithCATransform3D:CATransform3DIdentity]];

        popAnimation.keyTimes = @[@0.0f, @0.5f, @0.75f, @1.0f];

        popAnimation.timingFunctions = @[[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],

                                         [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],

                                         [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];

        [view.layer addAnimation:popAnimation forKey:nil];

        

    }

  • 相关阅读:
    POJ 2154
    POJ 1286
    Polycarp's problems
    Greedy Change
    Goods transportation
    Ugly Problem
    Happy Matt Friends
    Dense Subsequence
    Ray Tracing
    Batch Sort
  • 原文地址:https://www.cnblogs.com/KiVen2015/p/9360338.html
Copyright © 2020-2023  润新知