Tôi đang tìm cách xác định cách thức hoạt động của bàn phím. Trên iOS 6, tôi nhận được giá trị hợp lệ cho UIKeyboardAnimationCurveUserInfoKey
(phải là UIViewAnimationCurve
với giá trị từ 0-3) nhưng chức năng trả về một giá trị của 7. Làm thế nào để bàn phím animate trong? Điều gì có thể được thực hiện với giá trị 7?UIKeyboardWillChangeFrameNotification UIViewAnimationCài đặt thành 7 trên iOS 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}}";
}}
Xem http://stackoverflow.com/questions/18957476/ios-7-keyboard-animation & http://stackoverflow.com/questions/18837166/how-to-mimic-keyboard-animation-on-ios- Phím 7-to-add-done-button-to-numeric-keyboar –