TZKeyboardPop allow user to pop a keyboard with a UITextField dynamically attached to it.
0.0.1
- If you are using Cocoapods, insert the line below into your podfile
pod 'TZKeyboardPop', '~> 0.0.1'
-
OR manually import TZKeyboardPop.h, TZKeyboardPop.m into your project
-
You need to import wherever you wan't to pop the keyboard
#import <TZKeyboardPop.h>
@property (strong, nonatomic) TZKeyboardPop *customKeyboard;
- Don't forget to add TZKeyboardDelegate in your viewController
- Then you init in your viewdidload
_customKeyboard = [[TZKeyboardPop alloc] initWithView:self.view];
_customKeyboard.delegate = self;
- And then finally :
[_customKeyboard showKeyboard];
- (void) didShowKeyboard;
- (void) didCancelKeyboard;
- (void) didReturnKeyPressedWithText:(NSString *)str;
Want to contribute? Great! Do not hesitate to comment my code ! I will try my best to answer your questions !
Put in cocoapods- Optimizing the code
- Add new method to customize keyboard + textfield
MIT
Free Software, Hell Yeah!