To add panning behaviour to the keyboard, I am using DAKeyboardControl. It works just fine (after modifications) for panning behaviour to close the keyboard.
How do I make the keyboard appear if the user tries to scroll downwards (finger pan in up direction) at the end of the UITableView
. To be more specific, I am looking for behaviour similar to the Facebook Messages app, where, if you scroll up the keyboard appears, with panning, and scrolls with the table.
EDIT: It seems I am not clear about what I want. I wish to move the keyboard along with the scrollview (UITableView
). In the following image, I am panning the keyboard along with the table. The table is already scrolled to it's bottom, and if I try to scroll down any further the keyboard begins to appear. My finger, meanwhile, is in the middle of the table.
This effect can be achieved by setting the scrollview's keyboardDismissMode
to UIScrollViewKeyboardDismissModeInteractive
and then in scrollViewDidScroll:
calling [textField becomeFirstResponder];
. Because you are in the middle of scroll, the keyboard will respect the keyboardDismissMode
property and interactively appear. Drop the DAKeyboardControl
; it's outdated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With