swift3.0中UIView.animate(withDuration:方法中option属性不能为空了,应该设为哪些值呢?
我先冲个锋 2017-03-21 04:37:37 动画函数:
override func viewDidAppear(_ animated: Bool) {
// options属性的值是一个枚举类型,但不太清楚具体数值到底代表什么
UIView.animate(withDuration: 0.7, delay: 0.0, options: UIViewAnimationOptions(rawValue: 0), animations: {
self.diaglogView.transform = CGAffineTransform(scaleX: 1,y: 1)
}, completion: nil)
}
查了好多资料,只知道options是枚举类型,却不知道有哪些枚举以及代表的意义是啥,有了解的大神吗?