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?
精彩评论