Ganesh
Ganesh

Reputation: 1079

what we can use insted of UIKeyboardBoundsUserInfoKey in iphone os 4.0

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.

Upvotes: 0

Views: 6374

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96937

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

Upvotes: 1

Related Questions