Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 swift 3 更新中,我收到此错误消息
如果方法调用有任何变化,请告诉我。
谢谢
您需要使用数组curveEaseInOut:
curveEaseInOut
UIView.animate(withDuration: duration, delay: 0.0, option: [.curveEaseIn, .curveEaseOut], animations: { [weak self]() -> void in }
中的curveEaseInOut已被删除Swift 3.0,所以这里是实现动画的解决方法。
Swift 3.0