Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIAlertController:supportedInterfaceOrientations was invoked recursively #117

Open
linked67 opened this issue Jan 21, 2016 · 5 comments
Open

Comments

@linked67
Copy link

From Crashlytics report:

Fatal Exception: NSInternalInconsistencyException  
UIAlertController:supportedInterfaceOrientations was invoked recursively!

and

SIAlertView.m line 238
-[SIAlertViewController supportedInterfaceOrientations]
@MattiaConfalonieri
Copy link

Same here, any fix?

@zwm5000
Copy link

zwm5000 commented Mar 17, 2016

any one can know how to fix it?

@MattiaConfalonieri
Copy link

Any news?

@jonahgabriel
Copy link

I added a hack to just return the supported interface orientations of my app:

- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationPortrait | UIInterfaceOrientationPortraitUpsideDown; 
}

@yexiahua
Copy link

FIX type warning

  • (UIInterfaceOrientationMask)supportedInterfaceOrientations
    {
    UIViewController *viewController = [self.alertView.oldKeyWindow currentViewController];
    if (viewController) {
    return [viewController supportedInterfaceOrientations];
    }
    return UIInterfaceOrientationMaskAll;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants