6 ms·
Interesting - I did not know about the new receding keyboard functionality. For those curious, you can simply set a boolean on any UIScrollView or subclass to
by alexobenauer 13y ago
Interesting - I did not know about the new receding keyboard functionality.
For those curious, you can simply set a boolean on any UIScrollView or subclass to make the keyboard recede like in the Messages app.
- rounak 13y agoscrollview.keyboardDismissMode =UIScrollViewKeyboardDismissModeInteractive https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/c/tdef/UIScrollViewKeyboardDismissMode https://developer.apple.com/library/ios/documentation/UIKit/...
- rimantas 13y agoI 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.
- brianpgordon 13y agoWhat is a receding keyboard? Your comment is like /** * Recedes keyboard. */ void recedeKeyboard() {
- cmelbye 13y agoExcept 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.