iPhone 的默认键盘动画速率是多少? [英] What is the iPhone's default keyboard animation rate?
本文介绍了iPhone 的默认键盘动画速率是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不久前,我记得看到某种常数定义了 iPhone 上键盘的动画速率,但我终生无法记住我在哪里看到它......有什么见解吗?
A while ago I remember seeing a constant of some kind that defined the animation rate of the Keyboard on the iPhone and I can not for the life of me remember where I saw it....any insight?
推荐答案
- (NSTimeInterval)keyboardAnimationDurationForNotification:(NSNotification*)notification
{
NSDictionary* info = [notification userInfo];
NSValue* value = [info objectForKey:UIKeyboardAnimationDurationUserInfoKey];
NSTimeInterval duration = 0;
[value getValue:&duration];
return duration;
}
这篇关于iPhone 的默认键盘动画速率是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文