How to dismiss a certain view controller

风流意气都作罢 提交于 2020-01-06 08:19:28

问题


how can I dismiss a view controller beside the one that the user is currently in?

I need to replace self with the view controller name, but I get SIGABRT when I do so. What do I need to do? Thanks!

[self dismissModalViewControllerAnimated:NO];

回答1:


Try

[self.parentViewController dismissModalViewControllerAnimated: YES];


来源:https://stackoverflow.com/questions/6969190/how-to-dismiss-a-certain-view-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!