关于ios:UIWindow endDisablingInterfaceAutorotationAnimated: 错误 | 珊瑚贝

UIWindow endDisablingInterfaceAutorotationAnimated: error


当用户在 MFMailComposerViewController 中并按下主页按钮时,我收到以下错误:

[UIWindow endDisablingInterfaceAutorotationAnimated:] called on > without matching -beginDisablingInterfaceAutorotation. Ignoring.

我浏览了论坛,其他一些人在不同的情况下都遇到过这个错误,但没有解决方案。

我在应用程序的所有视图控制器中都设置了 shouldAutorotate:

1
2
3
4
5
6
(BOOL)shouldAutorotateToInterfaceOrientation:
                                  (UIInterfaceOrientation)interfaceOrientation
{
    return interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ||
           interfaceOrientation == UIInterfaceOrientationPortrait;
}
  • 关于这个问题的任何消息?我有同样的问题
  • 官方还没有解决这个问题吗?
  • 我只是遇到了同样的错误,这是因为我在 UIViewControllerAnimatedTransitioning -animateTransition(_:) 中不小心调用了两次 transitionContext.completeTransition(true)。我怀疑这正是您遇到的问题,但它可能与调用与邮件视图控制器的呈现相关的东西有关?您,或任何其他有此问题的人,可能想要调查围绕在此日志之前执行的视图控制器转换的 UIKit 转换相关代码。


检查是否有多余的调用来关闭键盘、UIActionSheet 等。

我遇到了同样的问题,我通过改变关闭键盘的方式解决了这个问题。我发现下面的这篇文章是最有帮助的

未知错误 [UIWindow endDisablingInterfaceAutorotation]

  • 将链接的部分内容放在这里,因为它变得不可用。
  • 实际上,@laeroah 我是对的。它看起来与调用视图控制器动画或与任何类型的 UITextField 或 UITextView 的 resignFirstResponder 事物不一致。


来源:https://www.codenong.com/12418627/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9365.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?