【发布时间】:2021-09-27 13:09:40
【问题描述】:
import UIKit
class ViewController: UIViewController {
var myAction: ((Int, Bool) -> Void)? = { [weak self] int, bool in
}
}
我不知道为什么会出现此错误。我以为self应该是ViewController的一个实例,怎么变成 '(ViewController) -> () -> ViewController'了?
【问题讨论】: