[iOS] Do not automatically set the focus

This is sometimes delayed a little and very confusing then.
This commit is contained in:
Jonathan Schleifer 2019-01-23 00:42:10 +01:00
parent 6f94644e00
commit e039b7d5f5
No known key found for this signature in database
GPG key ID: 79D21189A2D4708D

View file

@ -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];