Merge pull request #46 in BPHVB/mvm_core from feature/template_tabbar_generic to develop

* commit '81f8a0221bd535321e314c53436786d819413b06':
  name change
  Add back convenience property...
  tab bar generic
This commit is contained in:
Pfeil, Scott Robert 2019-01-23 16:12:00 -05:00
commit fbc0d6c3e0

View File

@ -7,17 +7,23 @@
//
// A protocol for view controllers that can be added to a view manager.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol MVMCoreViewManagerViewControllerProtocol
@optional
// Reference to the manager
@property (nullable, weak, nonatomic) UIViewController <MVMCoreViewManagerProtocol>*manager;
// Notifies the view controller that it can be ready (usually means that it's committed to the screen).
- (void)viewControllerReadyInManager:(nonnull NSObject <MVMCoreViewManagerProtocol>*)manager;
// Notifies the current showing view controller that the manager is disappearing.
- (void)managerWillDisappear:(nonnull NSObject <MVMCoreViewManagerProtocol>*)manager;
// Manager can check if the view controller does not want to be cached. You should be following proper caching techniques (caching, updating when needed, deleting when needed), so this should be a last resort.
- (BOOL)shouldCacheInManager;
@end