Commit 0aee2be6 authored by David黄金龙's avatar David黄金龙

一处优化

parent 604c9723
......@@ -55,14 +55,14 @@ class YHImageResultViewController: YHBaseViewController {
YHHUD.hide()
if let block = self.successHandlerBlock {
block(model?.content ?? "")
let mineVC = YHWorkExperienceViewController()
var targetVC : UIViewController!
// let mineVC = YHWorkExperienceViewController()
var targetVC : UIViewController?
for controller in self.navigationController!.viewControllers {
if controller.isKind(of: mineVC.classForCoder) {
if controller.isKind(of: YHWorkExperienceViewController.self) {
targetVC = controller
}
}
if targetVC != nil {
if let targetVC = targetVC {
self.navigationController?.popToViewController(targetVC, animated: true)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment