[iOS] Go back after generation

This commit is contained in:
Jonathan Schleifer 2016-10-09 18:39:42 +02:00
parent f9c228f9ad
commit 0295d8be65
No known key found for this signature in database
GPG key ID: 338C3541DB54E169

View file

@ -125,7 +125,9 @@ clearNSMutableString(NSMutableString *string)
[alert addAction:
[UIAlertAction actionWithTitle: @"OK"
style: UIAlertActionStyleDefault
handler: nil]];
handler: ^ (UIAlertAction *action) {
[self.navigationController popViewControllerAnimated: YES];
}]];
[self presentViewController: alert
animated: YES
@ -143,11 +145,13 @@ clearNSMutableString(NSMutableString *string)
[alert addAction:
[UIAlertAction actionWithTitle: @"OK"
style: UIAlertActionStyleDefault
handler: nil]];
handler: ^ (UIAlertAction *action) {
[self.navigationController popViewControllerAnimated: YES];
}]];
[self presentViewController: alert
animated: YES
completion: ^ {
completion: ^ {
clearNSMutableString(password);
}];
}