什么是iPhone的默认键盘动画率是多少? [英] What is the iPhone's default keyboard animation rate?
本文介绍了什么是iPhone的默认键盘动画率是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
前段时间我记得看到一些那种定义iPhone上的键盘的动画速度的恒定,我不能为我的生活还记得在那里我看到它....任何见解?
解决方案
- (NSTimeInterval)keyboardAnimationDurationForNotification:(NSNotification *)的通知
{
*的NSDictionary信息= [通知用户信息];
NSValue *值= [信息objectForKey:UIKeyboardAnimationDurationUserInfoKey];
NSTimeInterval持续时间= 0;
[价值的getValue:放大器;持续时间];
返回时间;
}
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屋!
查看全文