[英]warning attempt to dismiss from view controller while a presentation or dismiss is in progress
Steps to reproduce - 重现步骤 -
Another approach - 另一种方法-
Why this weird behavior when your showing Popover view controller in two different ways? 当您以两种不同的方式显示Popover视图控制器时,为什么会有这种奇怪的行为? I am working on already developed big project and now its not possible for me to go ahead with second approach.
我正在从事已经开发的大型项目,现在无法继续第二种方法。 Please help me to find out the better way to resolve this.
请帮助我找出解决此问题的更好方法。
You will need to create a delegate method in your Modal view controller. 您将需要在Modal视图控制器中创建一个委托方法。 After your popover view controller dismissed, then call your Modal view controller delegate method to dismiss as well.
弹出窗口视图控制器关闭后,再调用Modal视图控制器委托方法也将其关闭。
[self dismissViewControllerAnimated:YES completion:^{
ModalViewControllerDelegate.dismissView;
}];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.