spring动画(swift)
loginButton.alpha = 0
UIView.animateWithDuration(1, delay: 0.5,
usingSpringWithDamping: 0.5,
initialSpringVelocity: 0,
options: .AllowUserInteraction,
animations: {
self.loginButton.center.y -= 30
self.loginButton.alpha = 1
版权声明:本文为博主原创文章,未经博主允许不得转载。