From 3f482625a52e29288cf0d534b5878a9b04ad546d Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Mon, 28 Jan 2019 17:44:58 -0500 Subject: [PATCH] replace type --- .../TopLabelsAndBottomButtonsTableViewController.m | 2 +- .../BaseControllers/TopLabelsAndBottomButtonsViewController.m | 2 +- MVMCoreUI/Molecules/TopLabelsView.h | 2 +- MVMCoreUI/Molecules/TopLabelsView.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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;