Tutorial :what we can use insted of UIKeyboardBoundsUserInfoKey in iphone os 4.0



Question:

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.


Solution:1

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
Previous
Next Post »