Button to instanciate ViewController is not working after hiding it
问题 I have this very weird problem that I just found out... I have this button which is triggering this function : @objc func vergessenTapped() { let forgotPasswordVC = self.storyboard?.instantiateViewController(withIdentifier: "ForgotPasswordVC") as! ForgotPasswordVC forgotPasswordVC.email = self.emailTextField.text! self.present(forgotPasswordVC, animated: true, completion: nil) } I also have these function which hide / show the button above: // delegate Methode für eye-Button func