[iOS] Go back after generation
This commit is contained in:
parent
f9c228f9ad
commit
0295d8be65
1 changed files with 7 additions and 3 deletions
|
@ -125,7 +125,9 @@ clearNSMutableString(NSMutableString *string)
|
||||||
[alert addAction:
|
[alert addAction:
|
||||||
[UIAlertAction actionWithTitle: @"OK"
|
[UIAlertAction actionWithTitle: @"OK"
|
||||||
style: UIAlertActionStyleDefault
|
style: UIAlertActionStyleDefault
|
||||||
handler: nil]];
|
handler: ^ (UIAlertAction *action) {
|
||||||
|
[self.navigationController popViewControllerAnimated: YES];
|
||||||
|
}]];
|
||||||
|
|
||||||
[self presentViewController: alert
|
[self presentViewController: alert
|
||||||
animated: YES
|
animated: YES
|
||||||
|
@ -143,11 +145,13 @@ clearNSMutableString(NSMutableString *string)
|
||||||
[alert addAction:
|
[alert addAction:
|
||||||
[UIAlertAction actionWithTitle: @"OK"
|
[UIAlertAction actionWithTitle: @"OK"
|
||||||
style: UIAlertActionStyleDefault
|
style: UIAlertActionStyleDefault
|
||||||
handler: nil]];
|
handler: ^ (UIAlertAction *action) {
|
||||||
|
[self.navigationController popViewControllerAnimated: YES];
|
||||||
|
}]];
|
||||||
|
|
||||||
[self presentViewController: alert
|
[self presentViewController: alert
|
||||||
animated: YES
|
animated: YES
|
||||||
completion: ^ {
|
completion: ^ {
|
||||||
clearNSMutableString(password);
|
clearNSMutableString(password);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue