gpt4 book ai didi

ios - 错误 Nil 与预期的参数类型不兼容 '() -> Void'

转载 作者:搜寻专家 更新时间:2023-10-31 08:15:36 26 4
gpt4 key购买 nike

这段代码:

runAction(moveleft, completion: nil) 

给出错误:

Nil is not compatible with expected argument type '() -> Void'

这是为什么?

最佳答案

你应该传递参数{}:

runAction(moveleft, completion: {}) 

根据 this 的建议回答。

关于ios - 错误 Nil 与预期的参数类型不兼容 '() -> Void',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32942294/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com