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); }]; }