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

iOS 13 - Manually adding the rootViewController's view to the view hierarchy #62

Open
dkechag opened this issue Apr 7, 2020 · 0 comments

Comments

@dkechag
Copy link

dkechag commented Apr 7, 2020

I'm still using this alert view since I needed night-vision alerts on a rather niche app, with some minor fixes over the years, but with iOS 13 it seems the way the view is loaded itself won't work for long as I get:

Manually adding the rootViewController's view to the view hierarchy is no longer supported. Please allow UIWindow to add the rootViewController's view to the view hierarchy itself.

at:
[self.alertWindow makeKeyAndVisible];

I haven't really tried to solve this, as it still seems to work with that warning, but in case anyone has looked at it...

PS. I looked at it and just had to remove the line self.alertWindow.rootViewController = self it seems - oh, but then landscape doesn't work, woops, I'll look at it again!

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

1 participant