views:

593

answers:

1

Hi all i am using this code in my application.

CGRect keyboardBounds = [(NSValue *)[[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue];

but UIKeyboardBoundsUserInfoKey is deprecated in iOS 4.0

i am using UIKeyboardFrameEndUserInfoKey and UIKeyboardFrameBeginUserInfoKey

in iOS 4.0 but these are giving different result.

can any one suggest me what to do for this.

+1  A: 

Here is one solution that I came up with, along with an alternative recommendation from an Apple developer.

Alex Reynolds