我有3个视图控制器qazxsw poi,qazxsw poi,qazxsw poi
在主页changepassword按钮操作我将屏幕推入HomePageController
。
ChangePasswordViewController
现在我出现了屏幕PasswordChangedDoneController
到ChangePasswordViewController
。
let vc = self.storyboard?.instantiateViewController(withIdentifier: "ChangePasswordViewController")as! ChangePasswordViewController
self.navigationController?.pushViewController(vc, animated: true)
现在我想和ChangePasswordViewController
里面的Gotit Button Action一起去PasswordChangedDoneController
。在这里,我想一次性删除push和present。
您可以使用此函数弹出给定控制器的类类型
let vc = self.storyboard?.instantiateViewController(withIdentifier: "PasswordChangedController")as! PasswordChangedDoneController
self.navigationController?.present(vc, animated: true, completion: nil)
:)