Skip to content

Allow to pop a keyboard with a UITextField dynamically attached to it

License

Notifications You must be signed in to change notification settings

havocked/TZKeyboardPop

Repository files navigation

TZkeyboardPop

TZKeyboardPop allow user to pop a keyboard with a UITextField dynamically attached to it.

Version

0.0.1

Installation

  • 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];

Delegates

- (void) didShowKeyboard;
- (void) didCancelKeyboard;
- (void) didReturnKeyPressedWithText:(NSString *)str;

Development

Want to contribute? Great! Do not hesitate to comment my code ! I will try my best to answer your questions !

Todo's

  • Put in cocoapods
  • Optimizing the code
  • Add new method to customize keyboard + textfield

License

MIT

Free Software, Hell Yeah!

About

Allow to pop a keyboard with a UITextField dynamically attached to it

Resources

License

Stars

Watchers

Forks

Packages

No packages published