When the keyboard is showing on the iPhone's Messages app, if the user begins a swipe down from the messages tableview and continues into the keyboard area, the keyboard will begin to dismiss. If they move their finger up and down during this process, the keyboard moves with it.
Are Apple doing this with private APIs, or is there a way to control the keyboard like this from (I presume) a gesture recognizer?
It can be hard to view a conversation when reading texts in the Messages app because the keyboard blocks half the screen. To hide it, slide your finger down from above the text-entry box and the keyboard will start to disappear.
You can swipe left or right from the Apps screen of your Android phone or tablet to see more pages of apps. When you're using a web browser or an app such as Facebook or WhatsApp, you can swipe up to move down the page, and swipe back down to return to where you started.
I created a UIView category that provides the desired functionality:
https://github.com/danielamitay/DAKeyboardControl
Edit: It has indeed been used on the app store.
The simplest solution is to set the following two properties:
UIViewController : UIResponder
inputAccessoryView
UITableView : UIScrollView
keyboardDismissMode
Boom, baby!
Check out Acani Chats iPhone Client ChatViewController.swift
for an example.
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