我想将UIButton标题绑定到ViewModel中的BehaviorSubject<String>。我在Label中进行如下操作:
UIButton
BehaviorSubject<String>
Label
//ViewModel var fullName = BehaviorSubject<String?>(value: "") //ViewController vm.fullName.bind(to: fullNameLabel.rx.text).disposed(by: bag)
有什么办法吗?
title()