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?
A:
UIKeyboardAnimationDurationUserInfoKey The key for an NSValue object containing a double that identifies the duration of the animation in seconds.
ennuikiller
2009-09-14 00:43:10
Hey mate, is the key UIKeyboardAnimationDurationUserInfoKey in the user info dictionary of the notification????-thx
Jonathan Glanz
2009-09-14 04:21:52
+6
A:
- (NSTimeInterval)keyboardAnimationDurationForNotification:(NSNotification*)notification
{
NSDictionary* info = [notification userInfo];
NSValue* value = [info objectForKey:UIKeyboardAnimationDurationUserInfoKey];
NSTimeInterval duration = 0;
[value getValue:&duration];
return duration;
}
Shaggy Frog
2009-09-17 05:58:08
+1
A:
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0.3];
Sam Soffes
2010-03-11 19:40:04