我目前有一个UIButton
使用rx.tap
RxSwift 的功能来关闭一个UIVIewController
button.rx.tap
.subscribe(onNext: { [weak self] in
self?.navigationController?.dismiss(animated: true, completion: nil)
})
.disposed(by: disposeBag)
如何对ASButtonNode
对象实现相同的功能(来自 AsyncDisplayKit)
我尝试使用以下代码
buttonNode.rx.tap
.subscribe(onNext: { [weak self] in
self?.navigationController?.dismiss(animated: true, completion: nil)
})
.disposed(by: disposeBag)
但我得到一个错误说Ambiguous reference to member 'tap'
或者有没有其他选择。