replace type
This commit is contained in:
parent
91d485f852
commit
3f482625a5
@ -145,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)setHeadlineAndMessage {
|
- (void)setHeadlineAndMessage {
|
||||||
[self.topLabelsView setWtihJSON:[self mapForTopLabels]];
|
[self.topLabelsView setWithJSON:[self mapForTopLabels]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)updateViewConstraints {
|
- (void)updateViewConstraints {
|
||||||
|
|||||||
@ -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)]];
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user