开发者

Time taken for keyboard to animate on iOS

开发者 https://www.devze.com 2023-03-05 05:01 出处:网络
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

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

精彩评论

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