首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UIWindow endDisablingInterfaceAutorotationAnimated:错误

UIWindow endDisablingInterfaceAutorotationAnimated:错误
EN

Stack Overflow用户
提问于 2012-09-14 05:29:07
回答 1查看 6.3K关注 0票数 25

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

UIWindow endDisablingInterfaceAutorotationAnimated:调用on >而不匹配-beginDisablingInterfaceAutorotation。无视。

我环顾了论坛,其他一些人在不同的情况下也经历过这个错误,但是没有解决的办法。

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

代码语言:javascript
复制
- (BOOL)shouldAutorotateToInterfaceOrientation:
                                  (UIInterfaceOrientation)interfaceOrientation
{
    return interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ||
           interfaceOrientation == UIInterfaceOrientationPortrait;
}
EN

回答 1

Stack Overflow用户

发布于 2015-09-27 06:52:22

检查你是否有多余的电话拒绝键盘,UIActionSheet等。

我有同样的问题,并通过改变我的方式,取消键盘。我发现下面这篇文章是最有用的

Unknown error [UIWindow endDisablingInterfaceAutorotation]

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12418627

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档