【发布时间】:2013-10-29 05:45:30
【问题描述】:
我希望确定键盘的动画效果。在 iOS 6 上,我得到了 UIKeyboardAnimationCurveUserInfoKey 的有效值(应该是 UIViewAnimationCurve,其值介于 0-3 之间)但函数返回一个值的 7. 键盘是如何动画的?值 7 可以做什么?
NSConcreteNotification 0xc472900 {name = UIKeyboardWillChangeFrameNotification; userInfo = {
UIKeyboardAnimationCurveUserInfoKey = 7;
UIKeyboardAnimationDurationUserInfoKey = "0.25";
UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 216}}";
UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 588}";
UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 372}";
UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 480}, {320, 216}}";
UIKeyboardFrameChangedByUserInteraction = 0;
UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 264}, {320, 216}}";
}}
【问题讨论】:
标签: ios uikeyboard