diff --git a/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsTableViewController.m b/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsTableViewController.m index ed6d242d..0d4f7ebe 100644 --- a/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsTableViewController.m +++ b/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsTableViewController.m @@ -145,7 +145,7 @@ } - (void)setHeadlineAndMessage { - [self.topLabelsView setWtihJSON:[self mapForTopLabels]]; + [self.topLabelsView setWithJSON:[self mapForTopLabels]]; } - (void)updateViewConstraints { diff --git a/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsViewController.m b/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsViewController.m index 66216dd2..cc7cd627 100644 --- a/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsViewController.m +++ b/MVMCoreUI/BaseControllers/TopLabelsAndBottomButtonsViewController.m @@ -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)]]; diff --git a/MVMCoreUI/Molecules/TopLabelsView.h b/MVMCoreUI/Molecules/TopLabelsView.h index 3e2f8d2d..04c2d8be 100644 --- a/MVMCoreUI/Molecules/TopLabelsView.h +++ b/MVMCoreUI/Molecules/TopLabelsView.h @@ -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 diff --git a/MVMCoreUI/Molecules/TopLabelsView.m b/MVMCoreUI/Molecules/TopLabelsView.m index ccd45caf..028fcf32 100644 --- a/MVMCoreUI/Molecules/TopLabelsView.m +++ b/MVMCoreUI/Molecules/TopLabelsView.m @@ -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;