|
|
|
@ -214,14 +214,30 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|
|
|
|
if (!iconView) {
|
|
|
|
|
OWSFail(@"Database view registration overlay has unexpected contents.");
|
|
|
|
|
} else {
|
|
|
|
|
UILabel *label = [UILabel new];
|
|
|
|
|
label.text = NSLocalizedString(
|
|
|
|
|
@"DATABASE_VIEW_OVERLAY_TITLE", @"Indicates that the app is updating its database.");
|
|
|
|
|
label.font = [UIFont ows_mediumFontWithSize:18.f];
|
|
|
|
|
label.textColor = [UIColor whiteColor];
|
|
|
|
|
[rootView addSubview:label];
|
|
|
|
|
[label autoHCenterInSuperview];
|
|
|
|
|
[label autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:iconView withOffset:25.f];
|
|
|
|
|
UILabel *bottomLabel = [UILabel new];
|
|
|
|
|
bottomLabel.text = NSLocalizedString(
|
|
|
|
|
@"DATABASE_VIEW_OVERLAY_SUBTITLE", @"Subtitle shown while the app is updating its database.");
|
|
|
|
|
bottomLabel.font = [UIFont ows_mediumFontWithSize:16.f];
|
|
|
|
|
bottomLabel.textColor = [UIColor whiteColor];
|
|
|
|
|
bottomLabel.numberOfLines = 0;
|
|
|
|
|
bottomLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
|
|
|
|
bottomLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
|
|
[rootView addSubview:bottomLabel];
|
|
|
|
|
|
|
|
|
|
UILabel *topLabel = [UILabel new];
|
|
|
|
|
topLabel.text = NSLocalizedString(
|
|
|
|
|
@"DATABASE_VIEW_OVERLAY_TITLE", @"Title shown while the app is updating its database.");
|
|
|
|
|
topLabel.font = [UIFont ows_mediumFontWithSize:20.f];
|
|
|
|
|
topLabel.textColor = [UIColor whiteColor];
|
|
|
|
|
topLabel.numberOfLines = 0;
|
|
|
|
|
topLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
|
|
|
|
topLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
|
|
[rootView addSubview:topLabel];
|
|
|
|
|
|
|
|
|
|
[bottomLabel autoPinWidthToSuperviewWithMargin:20.f];
|
|
|
|
|
[topLabel autoPinWidthToSuperviewWithMargin:20.f];
|
|
|
|
|
[bottomLabel autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:topLabel withOffset:10.f];
|
|
|
|
|
[iconView autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:bottomLabel withOffset:40.f];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|