From 1bcdf5de0e676c32c78197644d3a22f7f40d9173 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Wed, 23 Jan 2019 16:06:17 -0500 Subject: [PATCH] name change --- MVMCoreUI/BaseControllers/MFViewController.m | 2 +- .../MVMCoreUITabBarPageControlViewController.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/BaseControllers/MFViewController.m b/MVMCoreUI/BaseControllers/MFViewController.m index 4347f6ea..9ae4d2a0 100644 --- a/MVMCoreUI/BaseControllers/MFViewController.m +++ b/MVMCoreUI/BaseControllers/MFViewController.m @@ -166,7 +166,7 @@ } } -- (BOOL)shouldCacheInTabPageControl { +- (BOOL)shouldCacheInManager { return YES; } diff --git a/MVMCoreUI/Containers/TabBarController/MVMCoreUITabBarPageControlViewController.m b/MVMCoreUI/Containers/TabBarController/MVMCoreUITabBarPageControlViewController.m index 1a101942..ad80eb3e 100644 --- a/MVMCoreUI/Containers/TabBarController/MVMCoreUITabBarPageControlViewController.m +++ b/MVMCoreUI/Containers/TabBarController/MVMCoreUITabBarPageControlViewController.m @@ -211,7 +211,7 @@ self.selectedIndex = i; [tabbar selectIndex:self.selectedIndex animated:NO]; - if ([self.viewController respondsToSelector:@selector(shouldCacheInTabPageControl)] && [((UIViewController *)self.viewController) shouldCacheInTabPageControl]) { + if ([self.viewController respondsToSelector:@selector(shouldCacheInManager)] && [((UIViewController *)self.viewController) shouldCacheInManager]) { [viewControllers addObject:self.viewController]; } else { [viewControllers addObject:[NSNull null]]; @@ -471,7 +471,7 @@ - (void)navigationController:(UINavigationController *)navigationController willDisplayViewController:(UIViewController *)viewController { if (navigationController == self.tabNavigationController) { - if ([viewController respondsToSelector:@selector(shouldCacheInTabPageControl)] && [((UIViewController *)viewController) shouldCacheInTabPageControl]) { + if ([viewController respondsToSelector:@selector(shouldCacheInManager)] && [((UIViewController *)viewController) shouldCacheInManager]) { [self.viewControllers replaceObjectAtIndex:self.selectedIndex withObject:viewController]; } if ([viewController respondsToSelector:@selector(setManager:)]) {