TKKeyboardTableViewController Class Reference
| Inherits from | TKTableViewController : UIViewController |
| Conforms to | UITextFieldDelegate UITextViewDelegate |
| Declared in | TKKeyboardTableViewController.h TKKeyboardTableViewController.m |
Overview
This class provides additional functionality to TKTableViewController text entry.
It will adjust its bounds when keyboards appear and hide keyboards when the user scrolls the table.
When you subclass, make sure to set this view controller to the delegate of your UITextField and UITextView objects.
Properties
hideKeyboardOnScroll
This flag is set to YES, it will call resignResponders when the user scrolls a table view. On iPad defaults to NO, Phone defaults to YES.
@property (nonatomic, assign) BOOL hideKeyboardOnScrollDeclared In
TKKeyboardTableViewController.hInstance Methods
initWithStyle:
Initializes a table-view controller to manage a table view of a given style.
- (instancetype)initWithStyle:(UITableViewStyle)styleParameters
- style
A constant that specifies the style of table view that the controller object is to manage (
UITableViewStylePlainorUITableViewStyleGrouped).
Return Value
An initialized TKTableViewController object or nil if the object couldn’t be created.
Declared In
TKTableViewController.hkeyboardWillAppear:
Will adjust table view scroll bounds when a keyboard is popped up.
- (void)keyboardWillAppear:(NSNotification *)senderParameters
- sender
The notification that sent the event.
Declared In
TKKeyboardTableViewController.hkeyboardWillDisappear:
Will reset the scrolling bound when the keyboard is dismissed.
- (void)keyboardWillDisappear:(NSNotification *)senderParameters
- sender
The notification that sent the event.
Declared In
TKKeyboardTableViewController.h