swift 3:解雇VC会删除所有模态VC

时间:2017-05-07 17:54:07

标签: xcode model-view-controller swift3

所以我的代码在已经模态化的vc上显示了一个vc。所以基本上我有3个VC在彼此的顶部1/2/3。但是,当我试图解雇VC#3时,2/3都被解雇了。我试图使用self.presentingvc来解雇,但我仍然得到相同的结果。任何解决方案?

    let SearchController = GMSAutocompleteViewController()
    SearchController.delegate = self
    present(SearchController, animated: true, completion: nil)


    dismiss(animated: true, completion: nil)

0 个答案:

没有答案