123456789101112131415161718192021222324252627282930 |
- #import "RNNSplitViewController.h"
-
- @implementation RNNSplitViewController
-
- -(instancetype)initWithOptions:(RNNSplitViewOptions*)options
- withComponentId:(NSString*)componentId
- rootViewCreator:(id<RNNRootViewCreator>)creator
- eventEmitter:(RNNEventEmitter*)eventEmitter {
- self = [super init];
- self.componentId = componentId;
- self.options = options;
- self.eventEmitter = eventEmitter;
- self.creator = creator;
-
- self.navigationController.delegate = self;
-
- return self;
- }
-
- -(void)viewWillAppear:(BOOL)animated{
- [super viewWillAppear:animated];
- [self.options applyOn:self];
- }
-
- - (UIViewController *)getLeafViewController {
- return self;
- }
-
- @end
|