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

Fix potentially missing PasswordForgottenButton, TwitterButton. #138

Merged
merged 1 commit into from
Aug 26, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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