如下图需要在present当前控制器时用全局变量firmwareUpgradePresentingVC先引用上一个控制器(下面的代码亲测有效)
func dismissAndPop() {
self.dismiss(animated: false) {
firmwareUpgradePresentingVC.navigationController!.popViewController(animated: true)
}
}