本文介绍了如何解雇某个视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何关闭用户当前所在的视图控制器?

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

我需要用视图控制器名称替换self,但是这样做时我得到了SIGABRT.我需要做什么?谢谢!

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];

推荐答案

尝试

[self.parentViewController dismissModalViewControllerAnimated: YES];

这篇关于如何解雇某个视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-09 21:30