让UIView有弹性移动
by 伍雪颖
[UIView animateWithDuration:1 delay:0.0 usingSpringWithDamping:0.5 initialSpringVelocity:0 options:UIViewAnimationOptionLayoutSubviews animations:^{ _moveView.top = 400; } completion:^(BOOL finished) { _moveView.top = 100; }];
时间: 2024-08-25 22:56:41