[iOS] Do not automatically set the focus
This is sometimes delayed a little and very confusing then.
This commit is contained in:
parent
6f94644e00
commit
e039b7d5f5
1 changed files with 1 additions and 8 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue