0
这段代码在Swift 3中运行良好,但现在通过Xcode将代码转换为Swift 4后,它出现错误。根据我从Web服务获得的值,我正在主队列中呈现下一个场景。无法转换类型'(_) - >()?'的值到预期的参数类型'@convention(block)() - > Void'
DispatchQueue.main.async {
[weak self] value in
self?.router?.invokeTheSegueAfterTheWebService(navigationKey: arrayElementsGot["questionType"] as! String, givenViewController: self!)
}