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