Index: iOS/ShowDetailsController.m ================================================================== --- iOS/ShowDetailsController.m +++ iOS/ShowDetailsController.m @@ -123,11 +123,13 @@ @"clipboard." preferredStyle: UIAlertControllerStyleAlert]; [alert addAction: [UIAlertAction actionWithTitle: @"OK" style: UIAlertActionStyleDefault - handler: nil]]; + handler: ^ (UIAlertAction *action) { + [self.navigationController popViewControllerAnimated: YES]; + }]]; [self presentViewController: alert animated: YES completion: nil]; } @@ -141,15 +143,17 @@ message: password preferredStyle: UIAlertControllerStyleAlert]; [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); }]; } - (NSMutableString*)_generate