代码:
#import ViewController.h
interface ViewController ()
end
implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//为textField增加键盘事件
[[NSNotificatio
Rx键盘
RxKeyboard提供了一种观察键盘框架变化的React方式。 忘记键盘通知。 它还与UIScrollViewKeyboardDismissMode.interactive完美配合。
入门
RxKeyboard提供了两个 。
/// An observable keyboard frame.
let frame : Driver
/// An observable visible height of keyboard. Emits keyboard height if the