// 弹簧动画 POPSpringAnimation *anim = [POPSpringAnimation animationWithPropertyNamed:kPOPViewFrame]; anim.fromValue = [NSValue valueWithCGRect:CGRectMake(buttonX, buttonBeginY, buttonW, buttonH)]; anim.toValue = [NSValue valueWithCGRect:CGRectMake(buttonX, buttonEndY, buttonW, buttonH)]; anim.springBounciness = XMGSpringFactor; anim.springSpeed = XMGSpringFactor; anim.beginTime = CACurrentMediaTime() + XMGAnimationDelay * i; [button pop_addAnimation:anim forKey:nil];