/VBResponsiveTextFieldViewController

A UIViewController subclass that won't let UITextFields be hidden by the keyboard

Primary LanguageObjective-C

Fix to make it work with tab view controllers. You must override function

func removeObserverOnViewWillDisappear() -> Bool

VBResponsiveTextFieldViewController

A UIViewController subclass that won't let UITextFields be hidden by the keyboard.

Usage

Subclass the VBResponsiveTextViewController for a view controller that will move it's top level view around so that the UITextField being edited by the user is never hidden underneath the keyboard. Simple as that.

N.B.

The VBResponsiveTextFieldViewController class conforms to the UITextField delegate protocol, so make sure any UITextFields in your view set their delegate property to the view controller that's inheiriting from VBResponsiveTextFieldViewController.

The distance between the keyboard and the active UITextField is defined by the 'kPreferredTextFieldToKeyboardOffset' macro in VBResponsiveTextFieldViewController.h