|
@@ -12,12 +12,12 @@
|
12
|
12
|
}
|
13
|
13
|
|
14
|
14
|
-(void)push:(UIViewController *)newTop onTop:(NSString *)containerId {
|
15
|
|
- RNNRootViewController *vc = [_store findContainerForId:containerId];
|
|
15
|
+ UIViewController *vc = [_store findContainerForId:containerId];
|
16
|
16
|
[[vc navigationController] pushViewController:newTop animated:YES];
|
17
|
17
|
}
|
18
|
18
|
|
19
|
19
|
-(void)pop:(NSString *)containerId {
|
20
|
|
- RNNRootViewController* vc = [_store findContainerForId:containerId];
|
|
20
|
+ UIViewController* vc = [_store findContainerForId:containerId];
|
21
|
21
|
UINavigationController* nvc = [vc navigationController];
|
22
|
22
|
if ([nvc topViewController] == vc) {
|
23
|
23
|
[nvc popViewControllerAnimated:YES];
|
|
@@ -30,7 +30,7 @@
|
30
|
30
|
}
|
31
|
31
|
|
32
|
32
|
-(void)popTo:(NSString*)containerId {
|
33
|
|
- RNNRootViewController *vc = [_store findContainerForId:containerId];
|
|
33
|
+ UIViewController *vc = [_store findContainerForId:containerId];
|
34
|
34
|
|
35
|
35
|
if (vc) {
|
36
|
36
|
UINavigationController *nvc = [vc navigationController];
|
|
@@ -42,7 +42,7 @@
|
42
|
42
|
}
|
43
|
43
|
|
44
|
44
|
-(void) popToRoot:(NSString*)containerId {
|
45
|
|
- RNNRootViewController* vc = [_store findContainerForId:containerId];
|
|
45
|
+ UIViewController* vc = [_store findContainerForId:containerId];
|
46
|
46
|
UINavigationController* nvc = [vc navigationController];
|
47
|
47
|
NSArray* poppedVCs = [nvc popToRootViewControllerAnimated:YES];
|
48
|
48
|
[self removePopedViewControllers:poppedVCs];
|