KeyboardHandler 0.0.1

KeyboardHandler 0.0.1

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2014年12月

Boyi Wu 维护。



  • Boyi Wu

KeyboardHandler 是一个让人愉悦的库,帮您轻松处理多个 UITextField 和键盘。它支持将 UITextField 包装在 UIViewController、UINavigationController、UITabBarController,甚至是 UIView 中。

这里是演示:下载 KeyboardHandler

Podfile

platform :ios, '7.0'
pod "KeyboardHandler", "~> 0.0.1"

用法

  1. 创建一个 NSArray,把所有的 UITextField 放进去。
  2. 调用方法: handleWithView
@interface Demo () {
    KeyboardHandler *keyboardHandler; // or declare as a property variable
}
@property (strong, nonatomic) IBOutlet UITextField *textField1;
@property (strong, nonatomic) IBOutlet UITextField *textField2;
@property (strong, nonatomic) IBOutlet UITextField *textField3;
@end
NSArray *textFields = @[_textField1,
                        _textField2,
                        _textField3];

keyboardHandler = [KeyboardHandler handleWithView:self.view textFields:textFields];