name change

This commit is contained in:
Pfeil, Scott Robert 2019-01-23 16:06:17 -05:00
parent f053399e8e
commit 1bcdf5de0e
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@
}
}
- (BOOL)shouldCacheInTabPageControl {
- (BOOL)shouldCacheInManager {
return YES;
}

View File

@ -211,7 +211,7 @@
self.selectedIndex = i;
[tabbar selectIndex:self.selectedIndex animated:NO];
if ([self.viewController respondsToSelector:@selector(shouldCacheInTabPageControl)] && [((UIViewController <MVMCoreViewManagerViewControllerProtocol> *)self.viewController) shouldCacheInTabPageControl]) {
if ([self.viewController respondsToSelector:@selector(shouldCacheInManager)] && [((UIViewController <MVMCoreViewManagerViewControllerProtocol> *)self.viewController) shouldCacheInManager]) {
[viewControllers addObject:self.viewController];
} else {
[viewControllers addObject:[NSNull null]];
@ -471,7 +471,7 @@
- (void)navigationController:(UINavigationController *)navigationController willDisplayViewController:(UIViewController <MVMCoreViewControllerProtocol>*)viewController {
if (navigationController == self.tabNavigationController) {
if ([viewController respondsToSelector:@selector(shouldCacheInTabPageControl)] && [((UIViewController <MVMCoreViewManagerViewControllerProtocol> *)viewController) shouldCacheInTabPageControl]) {
if ([viewController respondsToSelector:@selector(shouldCacheInManager)] && [((UIViewController <MVMCoreViewManagerViewControllerProtocol> *)viewController) shouldCacheInManager]) {
[self.viewControllers replaceObjectAtIndex:self.selectedIndex withObject:viewController];
}
if ([viewController respondsToSelector:@selector(setManager:)]) {