- (void)startAnimationMethod:(UIView *)aView{
CGPoint center = aView.center;
CGPoint startCenter = center;
startCenter.y += 300;
aView.center = startCenter;
[UIView animateWithDuration: 0.5 delay: 1 usingSpringWithDamping: 0.5 initialSpringVelocity: 0.8 options: UIViewAnimationOptionCurveLinear animations: ^{
aView.center = center;
} completion: nil];
}
iOS动画,让view有一个震动效果
最新推荐文章于 2023-11-17 10:17:24 发布