我期待確定鍵盤如何進行動畫處理。在iOS 6上,我獲得了UIKeyboardAnimationCurveUserInfoKey
(其值應該是UIViewAnimationCurve
,值爲0-3)的有效值,但是函數返回值7.如何鍵盤動畫? 7的值可以做什麼?UIKeyboardWillChangeFrameNotification在iOS 7上將UIViewAnimationCurve設置爲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}}";
}}
請參閱http://stackoverflow.com/questions/18957476/ios-7-keyboard-animation&http://stackoverflow.com/questions/18837166/how-to-mimic-keyboard-animation-on-ios- 7至外接完成按鈕到數字,keyboar –