Skip to content

p581581/KeyboardHandler

Repository files navigation

KeyboardHandler

KeyboardHandler is a delightful library that helps you handle with multiple UITextField and keyboard easily. It supports UITextField to be wrapped in a UIViewController, a UINavigationController, a UITabBarController, or even in a UIView.

Here is the Demo : Download KeyboardHandler

Podfile

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

Usage

  1. Create a NSArray, and put all UITextField into it.
  2. Call the method: 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 handleWithViewController:self textFields:textFields];

Add text field programmingly

[keyboardHandler addTextField: textField];

About

A tool that helps you handle iOS keyboard easily!

Resources

License

Stars

Watchers

Forks

Packages

No packages published