1.声明一个闭包
此为无参无返回值的闭包
var sharedClosure: (() -> ())?
2.闭包的实现
pdfReader.sharedClosure = { [weak self] in
}
3.闭包的调用
self.sharedClosure?()
1.声明一个闭包
此为无参无返回值的闭包
var sharedClosure: (() -> ())?
2.闭包的实现
pdfReader.sharedClosure = { [weak self] in
}
3.闭包的调用
self.sharedClosure?()