repeat phone number in header, next to back button

1. Putting it near the back-button suggests the user can change it by
   going back.

2. The existing title "Verify" didn't add any value.

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent fb53a3258d
commit ca768d071a

@ -104,7 +104,7 @@ NSString *const kCompletedRegistrationSegue = @"CompletedRegistration";
UILabel *titleLabel = [UILabel new]; UILabel *titleLabel = [UILabel new];
titleLabel.textColor = [UIColor whiteColor]; titleLabel.textColor = [UIColor whiteColor];
titleLabel.text = NSLocalizedString(@"VERIFICATION_HEADER", @"Navigation title in the registration flow - during the sms code verification process."); titleLabel.text = [self phoneNumberText];
titleLabel.font = [UIFont ows_mediumFontWithSize:20.f]; titleLabel.font = [UIFont ows_mediumFontWithSize:20.f];
[header addSubview:titleLabel]; [header addSubview:titleLabel];
[titleLabel autoPinToTopLayoutGuideOfViewController:self withInset:0]; [titleLabel autoPinToTopLayoutGuideOfViewController:self withInset:0];
@ -231,12 +231,18 @@ NSString *const kCompletedRegistrationSegue = @"CompletedRegistration";
[_requestCallSpinner autoPinEdgeToSuperviewEdge:ALEdgeRight withInset:kSpinnerSpacing]; [_requestCallSpinner autoPinEdgeToSuperviewEdge:ALEdgeRight withInset:kSpinnerSpacing];
} }
- (void)updatePhoneNumberLabel { - (NSString *)phoneNumberText
NSString *phoneNumber = [PhoneNumber bestEffortFormatPartialUserSpecifiedTextToLookLikeAPhoneNumber:[TSAccountManager localNumber]]; {
OWSAssert([TSAccountManager localNumber] != nil); OWSAssert([TSAccountManager localNumber] != nil);
_phoneNumberLabel.text = [NSString stringWithFormat:NSLocalizedString(@"VERIFICATION_PHONE_NUMBER_FORMAT", return [PhoneNumber bestEffortFormatPartialUserSpecifiedTextToLookLikeAPhoneNumber:[TSAccountManager localNumber]];
@"Label indicating the phone number currently being verified."), }
phoneNumber];
- (void)updatePhoneNumberLabel
{
_phoneNumberLabel.text =
[NSString stringWithFormat:NSLocalizedString(@"VERIFICATION_PHONE_NUMBER_FORMAT",
@"Label indicating the phone number currently being verified."),
[self phoneNumberText]];
} }
- (void)startActivityIndicator - (void)startActivityIndicator

@ -130,7 +130,7 @@
/* The title of the 'user blocked' alert. */ /* The title of the 'user blocked' alert. */
"BLOCK_LIST_VIEW_BLOCKED_ALERT_TITLE" = "User Blocked"; "BLOCK_LIST_VIEW_BLOCKED_ALERT_TITLE" = "User Blocked";
/* The title of the 'You can't block yourself' alert. */ /* The message of the 'You can't block yourself' alert. */
"BLOCK_LIST_VIEW_CANT_BLOCK_SELF_ALERT_MESSAGE" = "You can't block yourself."; "BLOCK_LIST_VIEW_CANT_BLOCK_SELF_ALERT_MESSAGE" = "You can't block yourself.";
/* The title of the 'You can't block yourself' alert. */ /* The title of the 'You can't block yourself' alert. */
@ -1084,9 +1084,6 @@
/* button text during registration to submit your SMS verification code */ /* button text during registration to submit your SMS verification code */
"VERIFICATION_CHALLENGE_SUBMIT_CODE" = "Submit Verification Code"; "VERIFICATION_CHALLENGE_SUBMIT_CODE" = "Submit Verification Code";
/* Navigation title in the registration flow - during the sms code verification process. */
"VERIFICATION_HEADER" = "Verify";
/* Label indicating the phone number currently being verified. */ /* Label indicating the phone number currently being verified. */
"VERIFICATION_PHONE_NUMBER_FORMAT" = "Enter the verification code we sent to %@."; "VERIFICATION_PHONE_NUMBER_FORMAT" = "Enter the verification code we sent to %@.";

Loading…
Cancel
Save