scrollview.keyboardDismissMode =UIScrollViewKeyboardDismissModeInteractive
https://developer.apple.com/library/ios/documentation/UIKit/...
Re:iOS 7 only is the only sane thing to do
by rimantas on Friday January 03, 2014 @03:32PM
(#7007887)
I wonder, what do they consider very painful regarding to having this functionality on iOS < 6. Sure it's not just setting a single property, but [UIView endEditing:] and UIScrollViewDelegate protocol was available since iOS 2.
Re:iOS 7 only is the only sane thing to do
by brianpgordon on Friday January 03, 2014 @05:19PM
(#7008633)
What is a receding keyboard? Your comment is like
/**
* Recedes keyboard.
*/
void recedeKeyboard() {
Re:iOS 7 only is the only sane thing to do
by cmelbye on Friday January 03, 2014 @05:50PM
(#7008804)
Except he explains that it works like it does in the Messages app. If you're not familiar, the keyboard in Messages slides down/recedes when you start scrolling through past messages so that it's not in the way and you can see more content. Give it a try if you have an iOS device, it's a very useful interaction.
For those curious, you can simply set a boolean on any UIScrollView or subclass to make the keyboard recede like in the Messages app.