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 { - (void)setHeadlineAndMessage {
[self.topLabelsView setWtihJSON:[self mapForTopLabels]]; [self.topLabelsView setWithJSON:[self mapForTopLabels]];
} }
- (void)updateViewConstraints { - (void)updateViewConstraints {

View File

@ -113,7 +113,7 @@
self.topLabelsView = topLabelsView; self.topLabelsView = topLabelsView;
topView = topLabelsView; topView = topLabelsView;
self.topView = topView; self.topView = topView;
[topLabelsView setWtihJSON:[self mapForTopLabels]]; [topLabelsView setWithJSON:[self mapForTopLabels]];
} }
[self.contentView addSubview:topView]; [self.contentView addSubview:topView];
[NSLayoutConstraint activateConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[topView]-0-|" options:NSLayoutFormatDirectionLeadingToTrailing metrics:nil views:NSDictionaryOfVariableBindings(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; - (void)setRightConstant:(CGFloat)rightConstant;
// Sets up the ui based on the json // Sets up the ui based on the json
- (void)setWtihJSON:(nullable NSDictionary *)json; - (void)setWithJSON:(nullable NSDictionary *)json;
@end @end

View File

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