swift 头尾式动画
1.0 头尾式动画 UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration(1.0) // 设置执行动画所需要的时间 // 要执行动画的代码 coding UIView.commitAnimations() // 提交动画
1.0 头尾式动画 UIView.beginAnimations(nil, context: nil) UIView.setAnimationDuration(1.0) // 设置执行动画所需要的时间 // 要执行动画的代码 coding UIView.commitAnimations() // 提交动画