diff options
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m')
-rw-r--r-- | example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m b/example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m index d7621dd0..f08eba77 100644 --- a/example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m +++ b/example/ios/iOS UI Test/iOS UI Test/SettingsViewController.m @@ -29,7 +29,7 @@ NSString * const PasswordKey = @"password"; - (void)done:(id)sender { [[NSUserDefaults standardUserDefaults] setObject:self.emailTextField.text forKey:UsernameKey]; - [FXKeychain defaultKeychain][PasswordKey] = self.passwordTextField.text; + [[FXKeychain defaultKeychain] setObject:self.passwordTextField.text ?: @"" forKey:PasswordKey]; [self.delegate settingsViewControllerFinished:self]; } @@ -39,7 +39,7 @@ NSString * const PasswordKey = @"password"; self.view.backgroundColor = [UIColor underPageBackgroundColor]; self.emailTextField.text = [[NSUserDefaults standardUserDefaults] stringForKey:UsernameKey]; - self.passwordTextField.text = [FXKeychain defaultKeychain][PasswordKey]; + self.passwordTextField.text = [[FXKeychain defaultKeychain] objectForKey:PasswordKey]; } - (void)didReceiveMemoryWarning |