views:

237

answers:

2

I am receiving this error. I have no clue as to why it would be called, and google didn't really help, any suggestions?

-[UIWindow endDisablingInterfaceAutorotation] called on <UIWindow: 0x4e0ec50; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x4e0f9e0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
A: 

Looks like you have to call -beginDisablingInterfaceAutorotation first and you're not doing that.

Thomas Müller
I did not call this method to begin with, I have already read that the beginMethod needs to be called first, but that is only when you call the end one and I did not, I did however track down the piece of code that caused it, [self showPurchase:purchase animated:YES];the animated needs to be set to NO. The thing is, when i first wrote this it did not throw an error, until I changed some code in the tableView methods, i needed to use a switch statement because of multiple sections, before there was only 1 section, i am still investigating.
iAm
A: 

I recently had the same problem. It turned out that I was accidentally displaying the same UIActionSheet twice. eg.

[actionSheet showInView:aView];

... more code ...

// WOOPS! I already did this
[actionSheet showInView:aView];

When the UIActionSheet gets dismissed (for about the 12th time, probably the -beginDisablingInterfaceAutorotation stack depth) it caused the error. Removing the redundant call to -showInView: fixed the problem.

hyperspasm