name change
This commit is contained in:
parent
f053399e8e
commit
1bcdf5de0e
@ -166,7 +166,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)shouldCacheInTabPageControl {
|
- (BOOL)shouldCacheInManager {
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -211,7 +211,7 @@
|
|||||||
self.selectedIndex = i;
|
self.selectedIndex = i;
|
||||||
[tabbar selectIndex:self.selectedIndex animated:NO];
|
[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];
|
[viewControllers addObject:self.viewController];
|
||||||
} else {
|
} else {
|
||||||
[viewControllers addObject:[NSNull null]];
|
[viewControllers addObject:[NSNull null]];
|
||||||
@ -471,7 +471,7 @@
|
|||||||
|
|
||||||
- (void)navigationController:(UINavigationController *)navigationController willDisplayViewController:(UIViewController <MVMCoreViewControllerProtocol>*)viewController {
|
- (void)navigationController:(UINavigationController *)navigationController willDisplayViewController:(UIViewController <MVMCoreViewControllerProtocol>*)viewController {
|
||||||
if (navigationController == self.tabNavigationController) {
|
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];
|
[self.viewControllers replaceObjectAtIndex:self.selectedIndex withObject:viewController];
|
||||||
}
|
}
|
||||||
if ([viewController respondsToSelector:@selector(setManager:)]) {
|
if ([viewController respondsToSelector:@selector(setManager:)]) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user