开发者

Time taken for keyboard to animate on iOS

I know from what I have observed, and from what people are saying on the www, that the keyboard takes close to 0开发者_StackOverflow社区.3 seconds to appear on the iPhone. I have set my 'field-moving-out-of-the-way' animations to 0.3s, and they work well.

But is there a constant somewhere in the system that I can use instead of this hard-coded value?


double animationDuration;
animationDuration = [[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue];

is that what you mean?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜