Kein Fehler beim Debug. Der Code geht nicht auf die nächste Seite nach der Anmeldung akzeptiert wird ... helfen plsWarum geht mein Code nicht zur nächsten Ansicht?
if (emailValue == userEmail || passValue == userPassword) {
//store user information in the app to maintain session
let defaults = UserDefaults.standard
defaults.set(usernameValue, forKey: "usernameValue")
defaults.set(nameValue, forKey: "nameValue")
defaults.set(emailValue, forKey: "emailValue")
// Display Alert Message with confirmation
let myAlert = UIAlertController(title: "Success!", message: Constants.SucessMessages.EIRP, preferredStyle: UIAlertControllerStyle.alert);
let okAction = UIAlertAction(title: "Ok", style: UIAlertActionStyle.default){ action in
self.dismiss(animated: true, completion: nil);
if let navController = self.navigationController {
navController.popViewController(animated: true)
}
}
myAlert.addAction(okAction);
OperationQueue.main.addOperation {
self.present(myAlert, animated: true, completion: nil)
}
}
seine kommt in innen ok Aktion –
@PAB PAB, Sie möchten zum nächsten Bildschirm gehen, aber der Code, den Sie verwendet haben, ist für den vorherigen Bildschirm o n tap von okAction – Hooda