Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #138 from ParsePlatform/nlutsenko.loginview
Browse files Browse the repository at this point in the history
Fix potentially missing PasswordForgottenButton, TwitterButton.
  • Loading branch information
nlutsenko committed Aug 26, 2015
2 parents 996c99a + 0c472b1 commit 8767f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ParseUI/Classes/LogInViewController/PFLogInView.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ - (void)_updateAllFields {
}

if (_fields & PFLogInFieldsPasswordForgotten) {
if (_passwordForgottenButton) {
if (!_passwordForgottenButton) {
_passwordForgottenButton = [[PFTextButton alloc] initWithFrame:CGRectZero];
[_passwordForgottenButton setTitle:NSLocalizedString(@"Forgot Password?", "Forgot Password?")
forState:UIControlStateNormal];
Expand Down Expand Up @@ -192,7 +192,7 @@ - (void)_updateAllFields {
}

if (_fields & PFLogInFieldsTwitter) {
if (_twitterButton) {
if (!_twitterButton) {
_twitterButton = [[PFActionButton alloc] initWithConfiguration:[[self class] _defaultTwitterButtonConfiguration]
buttonStyle:PFActionButtonStyleNormal];
[self addSubview:_twitterButton];
Expand Down Expand Up @@ -480,7 +480,7 @@ - (void)_updateUsernameFieldStyle {
keyboardType = UIKeyboardTypeEmailAddress;
usernamePlaceholder = NSLocalizedString(@"Email", @"Email");
}

_usernameField.placeholder = usernamePlaceholder;
_usernameField.keyboardType = keyboardType;
}
Expand Down

0 comments on commit 8767f4d

Please sign in to comment.