Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.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?

like image 697
vlad259 Avatar asked May 12 '11 14:05

vlad259


1 Answers

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

is that what you mean?

like image 164
Richard Smith Avatar answered Oct 21 '22 14:10

Richard Smith