25

I'm receiving the following error when a user is in MFMailComposerViewController and presses the Home button:

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

I have looked around the forums and some other people have experienced this error in different circumstances, but there is no solution.

I have set shouldAutorotate to this in all the View Controllers in the app:

- (BOOL)shouldAutorotateToInterfaceOrientation:
                                  (UIInterfaceOrientation)interfaceOrientation
{
    return interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ||
           interfaceOrientation == UIInterfaceOrientationPortrait;
}
Suraj Sonawane
  • 2,044
  • 1
  • 14
  • 24
Maddy
  • 251
  • 3
  • 4
  • Any news regarding this question? I have the same issue – Lio Oct 17 '12 at 15:55
  • Is it official that there is still no solution to this problem? – Deepak Thakur Dec 03 '14 at 05:41
  • I just had the same error, and it was because I was calling `transitionContext.completeTransition(true)` twice by accident in `UIViewControllerAnimatedTransitioning -animateTransition(_:)`. I doubt this is exactly the issue you're having, but it might be related to calling something related to the presentation of the mail view controller? You, or anyone else having this issue, might want to investigate the UIKit transition-related code surrounding view controller transitions that are performed before this log. – Ziewvater Nov 18 '15 at 20:02

1 Answers1

3

Check if you have redundant calls to dismiss keyboard, UIActionSheet and etc.

I had the same problem and solved by changing my way to dismiss the keyboard. I found this below post to be the most helpful one

Unknown error [UIWindow endDisablingInterfaceAutorotation]

Community
  • 1
  • 1
laeroah
  • 31
  • 1
  • 2
  • Put here part of the content of the link because it become unavailable. – Haroldo Gondim Sep 27 '15 at 06:58
  • Actually, @laeroah my be right. It looks like inconsistency with calls to view controllers animation or with `resignFirstResponder` things for any kind of `UITextField` or `UITextView`. – dive Nov 18 '16 at 22:57