【发布时间】:2017-07-19 07:39:01
【问题描述】:
我在 Xcode 9 Beta 3 中使用了 3rd party library。我在完成调用中收到以下错误,我无法解决此错误:
DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
self.animationView?.alpha = 0
self.containerView.alpha = 1
completion?() // -> Error: Missing argument parameter #1 in call.
}
并在完成函数中收到以下警告:
func openAnimation(_ completion: ((Void) -> Void)?) {
// -> Warning: When calling this function in Swift 4 or later, you must pass a '()' tuple; did you mean for the input type to be '()'?
}
【问题讨论】:
标签: swift ios11 xcode9-beta swift4