TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2015 |
Maintained by Michael Kamphausen, cg, Tino Rachui, Mathias Köhnke, Mathias Koehnke, Nico Schümann, Heiko Wichmann, Stephan Lerner, Famara Kassama.
InputAccesoryView above the keyboard with done button and optional previous and next buttons.
Import header file:
#import "APLKeyboardControls.h"
Define keyboardControls as a property in your viewController and initialize it like this:
NSArray* inputChain = @[self.textField1, self.textField2, self.textField3];
self.keyboardControls = [[APLKeyboardControls alloc] initWithInputFields:inputChain];
self.keyboardControls.hasPreviousNext = YES;
Customize buttons like this:
self.keyboardControls.doneButton.tintColor = [UIColor redColor];
In case you want to use the keyboardControls for other UIResponder subclasses than UITextField and UITextView, for example UISearchBar or a UIButton subclass that can become first responder, send an APLKeyboardControlsInputDidBeginEditingNotification as soon as your subclass becomes first responder, so the keyboardControls get notified about the first responder change.