How to correctly dismiss a UINavigationController that's presented as a modal?

后端 未结 8 1803
情话喂你
情话喂你 2021-02-01 16:04

In my TabBarViewController, I create a UINavigationController and present it as a modal.

var navController =  UINavigationController()
let messageVC         


        
8条回答
  •  花落未央
    2021-02-01 16:42

    In Swift 3 this is achieved with:

    self.navigationController?.dismiss(animated: true, completion: nil)
    

提交回复
热议问题