Animation Curve returned by UIKeyboardAnimationCurveUserInfoKey unusable in block based animations

Originator:eric
Number:rdar://15641270 Date Originated:11-Dec-2013
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
When subscribing to the keyboard notifications (e.g. UIKeyboardWillHideNotification), the notifications userInfo dictionary contains a value for the key UIKeyboardAnimationCurveUserInfoKey which is an integer. According to the documentation that integer is supposed to be apart of the UIViewAnimationCurve enum, but it is not. Instead, it seems to be some "private" curve that isn't listed in either the UIViewAnimationCurve enum or the UIViewAnimationOptions enum, which is the enum used for the options: parameter in any block-based UIView method, such as animateWithDuration:delay:options:animations:completions:. 

The result is that, the value returned by UIKeyboardAnimationCurveUserInfoKey cannot be turned into a corresponding entry in the UIViewAnimationOptions enum, so to use the keyboard curve to animate a view alongside the keyboard, we must use the non-block-based UIView animation methods.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Targeting iOS 7.0, on Xcode 5.0.2.  Running in the simulator and on the device

Notes:
Related to rdar://14872290

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!