I'm curious how iOS 7 mail app is moving and dismissing the keyboard according to user's touch drag on new message screen.
Also it's implemented on comments screen of instagram app.
Can it be implemented through public apis?
I'm curious how iOS 7 mail app is moving and dismissing the keyboard according to user's touch drag on new message screen.
Also it's implemented on comments screen of instagram app.
Can it be implemented through public apis?
UIScrollView
has a property called keyboardDismissMode
that allows you to set different behaviours. I think this is what you want:
scrollview.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive;
In your view controller just using [self.view endEditing:YES];
when the user taps on the view.
For the drag animation you have to use CoreAnimation and gesture recognizer based on keyboard frame.