【发布时间】:2012-09-14 05:29:07
【问题描述】:
当用户在 MFMailComposerViewController 并按下 主页 按钮时,我收到以下错误:
[UIWindow endDisablingInterfaceAutorotationAnimated:] 在不匹配 -beginDisablingInterfaceAutorotation 的情况下调用 >。忽略。
我浏览了论坛,其他一些人在不同的情况下遇到了这个错误,但没有解决方案。
我在应用程序的所有视图控制器中都设置了shouldAutorotate:
- (BOOL)shouldAutorotateToInterfaceOrientation:
(UIInterfaceOrientation)interfaceOrientation
{
return interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ||
interfaceOrientation == UIInterfaceOrientationPortrait;
}
【问题讨论】:
-
有关于这个问题的消息吗?我有同样的问题
-
官方还没有解决这个问题吗?
-
我刚刚遇到了同样的错误,这是因为我在
UIViewControllerAnimatedTransitioning -animateTransition(_:)中不小心调用了两次transitionContext.completeTransition(true)。我怀疑这正是您遇到的问题,但它可能与调用与邮件视图控制器的呈现相关的东西有关?您或遇到此问题的任何其他人可能想要调查与此日志之前执行的视图控制器转换相关的 UIKit 转换相关代码。
标签: ios objective-c orientation uiwindow