|
@@ -38,6 +38,25 @@
|
38
|
38
|
return [self.type isEqualToString:@"Tabs"];
|
39
|
39
|
}
|
40
|
40
|
|
|
41
|
+-(BOOL)isSideMenuRoot
|
|
42
|
+{
|
|
43
|
+ return [self.type isEqualToString:@"SideMenuRoot"];
|
|
44
|
+}
|
|
45
|
+
|
|
46
|
+-(BOOL)isSideMenuLeft
|
|
47
|
+{
|
|
48
|
+ return [self.type isEqualToString:@"SideMenuLeft"];
|
|
49
|
+}
|
|
50
|
+
|
|
51
|
+-(BOOL)isSideMenuRight
|
|
52
|
+{
|
|
53
|
+ return [self.type isEqualToString:@"SideMenuRight"];
|
|
54
|
+}
|
|
55
|
+
|
|
56
|
+-(BOOL)isSideMenuCenter
|
|
57
|
+{
|
|
58
|
+ return [self.type isEqualToString:@"SideMenuCenter"];
|
|
59
|
+}
|
41
|
60
|
@end
|
42
|
61
|
|
43
|
62
|
@implementation RNNControllerFactory
|
|
@@ -54,15 +73,15 @@
|
54
|
73
|
if (node.isContainer)
|
55
|
74
|
{
|
56
|
75
|
return [self createContainer:node];
|
57
|
|
- } else if(node.isContainerStack)
|
|
76
|
+ } else if (node.isContainerStack)
|
58
|
77
|
{
|
59
|
78
|
return [self createContainerStack:node];
|
60
|
|
- } else if(node.isTabs)
|
|
79
|
+ } else if (node.isTabs)
|
61
|
80
|
{
|
62
|
81
|
return [self createTabs:node];
|
63
|
82
|
}
|
64
|
83
|
|
65
|
|
- @throw @"unknown container type";
|
|
84
|
+ @throw [NSException exceptionWithName:@"UnknownControllerType" reason:[@"Unknown controller type " stringByAppendingString:node.type] userInfo:nil];
|
66
|
85
|
}
|
67
|
86
|
|
68
|
87
|
-(UIViewController*)createContainer:(RNNLayoutNode*)node
|