首页 > 代码库 > 让UIView有弹性移动

让UIView有弹性移动

让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;
}];


让UIView有弹性移动