replace type

This commit is contained in:
Pfeil, Scott Robert 2019-01-28 17:44:58 -05:00
parent 91d485f852
commit 3f482625a5
4 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@
}
- (void)setHeadlineAndMessage {
[self.topLabelsView setWtihJSON:[self mapForTopLabels]];
[self.topLabelsView setWithJSON:[self mapForTopLabels]];
}
- (void)updateViewConstraints {

View File

@ -113,7 +113,7 @@
self.topLabelsView = topLabelsView;
topView = topLabelsView;
self.topView = topView;
[topLabelsView setWtihJSON:[self mapForTopLabels]];
[topLabelsView setWithJSON:[self mapForTopLabels]];
}
[self.contentView addSubview:topView];
[NSLayoutConstraint activateConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[topView]-0-|" options:NSLayoutFormatDirectionLeadingToTrailing metrics:nil views:NSDictionaryOfVariableBindings(topView)]];

View File

@ -51,6 +51,6 @@
- (void)setRightConstant:(CGFloat)rightConstant;
// Sets up the ui based on the json
- (void)setWtihJSON:(nullable NSDictionary *)json;
- (void)setWithJSON:(nullable NSDictionary *)json;
@end

View File

@ -215,7 +215,7 @@
self.rightConstraintSeparator.constant = rightConstant;
}
- (void)setWtihJSON:(nullable NSDictionary *)json {
- (void)setWithJSON:(nullable NSDictionary *)json {
[self setHeadlineString:[json stringForKey:KeyTitle] messageString:[json stringForKey:KeyMessage]];
UIColor *textColor = [self colorForTopLabelsWithJSON:json];
self.headlineLabel.textColor = textColor;