From 0295d8be6567bc80d88450a1b1511aca45e7b373 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 9 Oct 2016 18:39:42 +0200 Subject: [PATCH] [iOS] Go back after generation --- iOS/ShowDetailsController.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/iOS/ShowDetailsController.m b/iOS/ShowDetailsController.m index 86ee67a..655607e 100644 --- a/iOS/ShowDetailsController.m +++ b/iOS/ShowDetailsController.m @@ -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); }]; }