我想在我的视图控制器堆栈上返回两个级别。我按此顺序设置了三个序列:Show、Show、Present Modally。有一个导航控制器正在使用中。从我的第四个视图我想回到第二个视图。我试过使用
self.presentingViewController?.presentingViewController?.navigationController?.popViewControllerAnimated(false);
和
self.presentingViewController?.presentingViewController?.dismissViewControllerAnimated(false, completion: nil);
第二个仅在第二个和第三个连续为“当前模态”时才有效。我怎样才能让他们在解雇和流行的情况下工作?