RxCocoa APIS
- NSObject
Observe
|
|
- UIActivityIndicatorView
|
|
- UIAlertAction
|
|
- UIApplication
|
|
- UIBarButtonItem
|
|
- UIButton
|
|
- UICollectionView
|
|
- UIControl
|
|
- UIDatePicker
|
|
- UIGestureRecognizer
|
|
- UIImageView
|
|
- UILabel
|
|
- UINavigationController
|
|
- UINavigationItem
|
|
RxCocoa Highlighted API
- bind
|
|
example 1
|
|
example 2
|
|
- UIBindingObserver
RxCocoa UI组件值绑定核心
|
|
|
|
example
|
|
- ControlEvent
RxCocoa UI组件点击事件绑定核心
类定义
|
|
封装
|
|
使用
|
|
- Driver
用法同 bind(to )
专门针对于UI的特定可观察者类
特性
它不会发射出错误(Error)事件
对它的观察订阅是发生在主线程(UI线程)的
自带shareReplayLatestWhileConnected
|
|
|
|
- DisposeBag
类似于Objective-C ARC中的自动释放池机制。
方法addDisposableTo会对DisposeBag进行弱引用,所以这个DisposeBag要被实例引用着,一般可作为实例的成员变量,当实例被销毁了,成员DisposeBag会跟着销毁,从而使得RxSwift在此实例上绑定的资源得到释放。