RxSwift 在 UITextField 的应用
作者:
曾柏超 | 来源:发表于
2018-02-01 10:57 被阅读0次
@IBOutlet weak var label: UITextField!
let dispose = DisposeBag()
override func viewDidLoad() {
super.viewDidLoad()
label.rx.text.subscribe({ _ in
print(self.label.text!) }
).disposed(by: dispose)
}
2018-02-01 10:55:44.732881+0800 zhihu[3994:1580218] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-02-01 10:55:44.733619+0800 zhihu[3994:1580218] [MC] Loaded MobileCoreServices.framework
2018-02-01 10:55:50.780786+0800 zhihu[3994:1580218] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-02-01 10:55:50.782129+0800 zhihu[3994:1580218] [MC] Reading from public effective user settings.
q
qq
qqq
qqqq
qqqqq
qqqqqq
qqqqqqq
qqqqqqqq
qqqqqqqqq
本文标题:RxSwift 在 UITextField 的应用
本文链接:https://www.haomeiwen.com/subject/zmxdzxtx.html
网友评论