weak 捕获不同对象写法
balanceView.confirmCallBack = { [weak balanceView, self] in
self?.name = "123"
balanceView.selectedList = []
}
balanceView.confirmCallBack = { [weak balanceView, self] in
self?.name = "123"
balanceView.selectedList = []
}
本文标题:Swift多对象循环引用
本文链接:https://www.haomeiwen.com/subject/moidrltx.html
网友评论