|
@@ -13,7 +13,7 @@
|
13
|
13
|
|
14
|
14
|
- (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo creator:(id<RNNComponentViewCreator>)creator childViewControllers:(NSArray *)childViewControllers options:(RNNNavigationOptions *)options defaultOptions:(RNNNavigationOptions *)defaultOptions presenter:(RNNBasePresenter *)presenter eventEmitter:(RNNEventEmitter *)eventEmitter {
|
15
|
15
|
[self setControllers:childViewControllers];
|
16
|
|
- self = [super initWithCenterViewController:self.center leftDrawerViewController:self.left rightDrawerViewController:self.right];
|
|
16
|
+ self = [super init];
|
17
|
17
|
|
18
|
18
|
self.presenter = presenter;
|
19
|
19
|
[self.presenter bindViewController:self];
|
|
@@ -38,6 +38,20 @@
|
38
|
38
|
[self.presenter setDefaultOptions:defaultOptions];
|
39
|
39
|
}
|
40
|
40
|
|
|
41
|
+- (void)loadView {
|
|
42
|
+ [super loadView];
|
|
43
|
+ [self setCenterViewController:self.center];
|
|
44
|
+ [self setLeftDrawerViewController:self.left];
|
|
45
|
+ [self setRightDrawerViewController:self.right];
|
|
46
|
+}
|
|
47
|
+
|
|
48
|
+- (void)render {
|
|
49
|
+ [super render];
|
|
50
|
+ [self.center render];
|
|
51
|
+ [self.left render];
|
|
52
|
+ [self.right render];
|
|
53
|
+}
|
|
54
|
+
|
41
|
55
|
- (void)setAnimationType:(NSString *)animationType {
|
42
|
56
|
MMDrawerControllerDrawerVisualStateBlock animationTypeStateBlock = nil;
|
43
|
57
|
if ([animationType isEqualToString:@"door"]) animationTypeStateBlock = [MMDrawerVisualState swingingDoorVisualStateBlock];
|