I was sometimes (when the pan velocity was large) using UIViewAnimationCurveLinear
instead of the curve from the keyboard notification's userInfo
. I took that condition out so that I always use the curve from the keyboard notification's userInfo
and things seem to be working fine now.
UIView Animation Freezes
-
01-07-2022 - |
Question
I'm implementing drag-keyboard dismissal (like in the iPhone Messages app) manually because UIScrollViewKeyboardDismissModeInteractive
doesn't seem to work with a text view inside a toolbar above the keyboard.
It works in portraint mode, but in landscape orientation, sometimes when I animate the toolbar (which is actually just a UIView
) & keyboard, they freeze. But, they did animate because I checked using breakpoints that the animation code ran and when I tap on the screen where they're supposed to be, I get the correct reactions (like keyboard keys pop up, etc.).
I'm using the old style of animations beginAnimations:context:
because this is how to mimic the keyboard animation in iOS 7.
This seems like an iOS SDK bug. How do I fix this?
Solution