弹簧弹窗效果

运用的只是系统的方法,和正常的动画效果,只是多了一些参数而且,非常简单,记录下来,方法为

[UIView animateWithDuration:0.8f delay:-1 usingSpringWithDamping:0.3f initialSpringVelocity:100 options:UIViewAnimationOptionAllowUserInteraction  animations:^{

        _view.frame=CGRectMake(50, 150, self.view.frame.size.width-100, 150);

    } completion:nil];

delay自然表示的是延迟,0则为是瞬间触发

这里面只是多了几个参数而已,其中usingSpringWithDamping越小,效果越明显,而initialSpringVelocity越大效果越明显

posted @ 2015-11-10 17:24  _Ace  阅读(192)  评论(0编辑  收藏  举报