I'm trying to pop the controller from an alert action and getting to another view controller. I want to do some action immediately after I get on to this other controller, say open another alert controller. How do I do it?
UIAlertController.getAlertView("Success", message: "Your password has been successfully changed!", cancelButtonTitle: "Ok", cancelHandler: { (action) in
self.navigationController?.popViewController(animated: true)
}).show(self)