Tutorial :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.


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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »