From 495ab78ceaaaa1deeb4e91614713b909a584541e Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 18 Jan 2019 12:10:23 -0500 Subject: [PATCH] tab bar generic --- .../MVMCoreViewManagerViewControllerProtocol.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerViewControllerProtocol.h b/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerViewControllerProtocol.h index 962a689..04a884c 100644 --- a/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerViewControllerProtocol.h +++ b/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerViewControllerProtocol.h @@ -7,17 +7,23 @@ // // A protocol for view controllers that can be added to a view manager. -#import +#import @protocol MVMCoreViewManagerViewControllerProtocol @optional +// Reference to the manager +@property UIViewController *manager; + // Notifies the view controller that it can be ready (usually means that it's committed to the screen). - (void)viewControllerReadyInManager:(nonnull NSObject *)manager; // Notifies the current showing view controller that the manager is disappearing. - (void)managerWillDisappear:(nonnull NSObject *)manager; +// Can override the standard tab page control to not cache in tab. You should be following proper caching techniques (caching, updating when needed, deleting when needed), so this should be a last resort. +- (BOOL)shouldCacheInTabPageControl; + @end