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

Cannot show another view controller by pressing button #27

Open
shiaubo opened this issue Apr 19, 2017 · 0 comments
Open

Cannot show another view controller by pressing button #27

shiaubo opened this issue Apr 19, 2017 · 0 comments

Comments

@shiaubo
Copy link

shiaubo commented Apr 19, 2017

It's a nice and easy library for alert controller.
However, I have a question.

In my program, as I press the button, I want to show another view controller. So I use "performSegue" to do that. It works on UIAlertController.
When I change to DOAlertController, the view didn't show up, but the code which I write in that view controller still appear in log. (It still prints what I want to show).

The error message is:
Warning: Attempt to present <XXX.AnotherViewController: 0x101933400> on <DOAlertController: 0x101928a00> whose view is not in the window hierarchy!

I'm wondering if somebody can give me some directions, thanks a lot. :-)

@shiaubo shiaubo changed the title Cannot show another view controller Cannot show another view controller by pressing button Apr 19, 2017
calvingit pushed a commit to calvingit/DOAlertController that referenced this issue Dec 19, 2017
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