简单地弹簧效果动画

2015-11-24  本文已影响90人  anyurchao

[UIView animateWithDuration:.3f

delay:0.0f

usingSpringWithDamping:.2f

initialSpringVelocity:10.f

options:0 animations:^{

cell.medicineCateImageView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.3, 1.3);

cell.medicineCateNameLabel.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.3, 1.3);

}completion:^(BOOL finished) {

cell.medicineCateImageView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1, 1);

cell.medicineCateNameLabel.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1, 1);

}];

上一篇 下一篇

猜你喜欢

热点阅读