我们可以在iphone os 4.0中使用而不是UIKeyboardFrameendUserInfoKey

时间:2010-07-29 09:23:03

标签: iphone keyboard deprecated uikeyboard

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

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

但在iOS 4.0中不推荐使用UIKeyboardBoundsUserInfoKey

我正在使用UIKeyboardFrameEndUserInfoKey和UIKeyboardFrameBeginUserInfoKey

在iOS 4.0中,但这些结果不同。

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

1 个答案:

答案 0 :(得分:1)

我想出了

Here is one solution以及Apple开发人员提供的替代建议。