From e039b7d5f58516664cf642d3ddb5f3c6aeae2690 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 23 Jan 2019 00:42:10 +0100 Subject: [PATCH] [iOS] Do not automatically set the focus This is sometimes delayed a little and very confusing then. --- iOS/ShowDetailsController.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/iOS/ShowDetailsController.m b/iOS/ShowDetailsController.m index 986cc8c..6c1c6ee 100644 --- a/iOS/ShowDetailsController.m +++ b/iOS/ShowDetailsController.m @@ -44,7 +44,7 @@ clearNSMutableString(NSMutableString *string) * replaces that character in memory, and thus allows us to zero the * password. */ - for (NSUInteger i = 0 ; i < string.length; i++) + for (NSUInteger i = 0; i < string.length; i++) [string replaceCharactersInRange: NSMakeRange(i, 1) withString: @" "]; } @@ -89,13 +89,6 @@ clearNSMutableString(NSMutableString *string) animated: YES]; } -- (void)viewDidAppear: (BOOL)animated -{ - [super viewDidAppear: animated]; - - [self.passphraseField becomeFirstResponder]; -} - - (BOOL)textFieldShouldReturn: (UITextField *)textField { [textField resignFirstResponder];