美文网首页
简单地弹簧效果动画

简单地弹簧效果动画

作者: anyurchao | 来源:发表于2015-11-24 21:57 被阅读90次

[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);

}];

相关文章

网友评论

      本文标题:简单地弹簧效果动画

      本文链接:https://www.haomeiwen.com/subject/qcgrhttx.html