大家好,我在我的应用程序中使用此代码。
CGRect keyboardBounds = [(NSValue *)[[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue];
但 UIKeyboardBoundsUserInfoKey 在 iOS 4.0 中已弃用
我正在使用 UIKeyboardFrameEndUserInfoKey 和 UIKeyboardFrameBeginUserInfoKey
在 iOS 4.0 中,但这些给出了不同的结果。
任何人都可以建议我为此做些什么。