0

大家好,我在我的应用程序中使用此代码。

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

但 UIKeyboardBoundsUserInfoKey 在 iOS 4.0 中已弃用

我正在使用 UIKeyboardFrameEndUserInfoKey 和 UIKeyboardFrameBeginUserInfoKey

在 iOS 4.0 中,但这些给出了不同的结果。

任何人都可以建议我为此做些什么。

4

1 回答 1

1

这是我想出的一个解决方案,以及来自 Apple 开发人员的替代建议。

于 2010-07-29T09:50:28.510 回答