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

后端 未结 8 1910
情话喂你
情话喂你 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:35

    You can use the following to correctly dismiss a UINavigationController that's presented as a modal in Swift 4:

    self.navigationController?.popViewController(animated: true)
    

提交回复
热议问题