UIView(KeyboardHelpers) Category Reference
| Declared in | UIView+KeyboardHelpers.h | 
Overview
UIView (KeyboardHelpers) is a helper category that provides easy to use methods to manipulate views when the keyboard show/hide to avoid UITextField from getting covered by the keyboard.
Instance Methods
checkTextField:
Checks if the provided object is a UITextField. If positive calls resignFirstResponder if the object is UIView calls resignTextFields:
- (void)checkTextField:(id)objectParameters
- object
 The object that will be evaluated as a
UITextFieldorUIView.
See Also
Declared In
UIView+KeyboardHelpers.hcleanTextField:
Checks if the provided object is a UITextField. If positive sets the text property to @""; if the object is UIView calls resignTextFields:
- (void)cleanTextField:(id)objectParameters
- object
 The object that will be evaluated as a
UITextFieldorUIView.
See Also
Declared In
UIView+KeyboardHelpers.hresignTextFields:
Iterates through the provided UIView container and calls resignFirstResponder if its a UITextField if not drills down on that object looking for more UITextField.
- (void)resignTextFields:(UIView *)containerParameters
- container
 The
UIViewobject that will be used as the “top” container to start drilling down looking forUITextFieldobjects.
Discussion
This method calls down [UIView checkTextField:]
See Also
Declared In
UIView+KeyboardHelpers.hslideDownIfNecessary
Detects if the UIView was moved up due to some keyboard covering it and slides it back to “normal”.
- (void)slideDownIfNecessaryDeclared In
UIView+KeyboardHelpers.hslideUpIfNecessaryForTextField:
Detects if the keyboard is going to cover the provided UITextField and slides up the UIView to avoid the it getting covered by the keyboard.
- (void)slideUpIfNecessaryForTextField:(UITextField *)textFieldParameters
- textField
 The
UITextFieldobject that needs to be checked if its going to be covered by the keyboard or not.
See Also
Declared In
UIView+KeyboardHelpers.h