DOAlertController icon indicating copy to clipboard operation
DOAlertController copied to clipboard

Cannot show another view controller by pressing button

Open shiaubo opened this issue 8 years ago • 0 comments

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 avatar Apr 19 '17 09:04 shiaubo