0

我们的应用程序有一个用于登录的 UIViewController,第一次加载运行良好,但在注销后,当我们回到登录页面时,我们检测到 6.1 版本的一些意外问题。

我根据通知配置事件keyboardDidShow 和keyboardWillHide,因为键盘出现在屏幕外。

如果我根据 UIKeyboardFrameEndUserInfoKey 打印键盘的 CGRect,则行为非常陌生:

第一个字段:{{inf, inf}, {0, 0}} 第二个字段:{{160, 487}, {0, 0}}

此外,当问题出现时,interfaceOrientation 总是未知的。

之后的键盘位置

4

1 回答 1

0

Solved.

On the didFinishLoad / AppDelegate we had this code:

self.window.rootViewController = self.viewController;
[self.window addSubview:self.viewController.view];

I replace it (removing the first line):

// Add to the windows the iForceViewController view
[window addSubview:viewController.view];

Is a crappy solution, because we include the first line in order to solve unexpected behavior on rotations.

Thanks

于 2013-06-21T08:42:30.510 回答