弹簧动画效果(系统自带方法)

/**

     *   动画效果

     */

    [UIView animateWithDuration:0.5 // 动画时长

                          delay:0.0 // 动画延迟

         usingSpringWithDamping:0.58 // 阻力

          initialSpringVelocity:3.9 // 动力

                        options:UIViewAnimationOptionCurveLinear // 动画过渡效果

                     animations:^{

                         self.communityItem.center =  CGPointMake(itemX + (ItemW)/2.0, ItemFinalY);

                         self.integralMallItem.center = CGPointMake(JYEScreenWidth - itemX - itemW/2.0, ItemFinalY);

                         self.shareCaremaItem.center = CGPointMake((JYEScreenWidth)/2.0, ItemFinalY);

                     } completion:^(BOOL finished) {

                         

                     }];

原文地址:https://www.cnblogs.com/lrr0618/p/5974257.html