Browse Source

A workaround for iOS issue of not updating popped screen nav bar in time

Sergey Ilyevsky 6 years ago
parent
commit
0283257447
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      lib/ios/RNNNavigationController.m

+ 8
- 0
lib/ios/RNNNavigationController.m View File

@@ -30,6 +30,14 @@
30 30
 }
31 31
 
32 32
 - (UIViewController *)popViewControllerAnimated:(BOOL)animated {
33
+	if (self.viewControllers.count > 1) {
34
+		UIViewController *controller = self.viewControllers[self.viewControllers.count - 2];
35
+		if ([controller isKindOfClass:[RNNRootViewController class]]) {
36
+			RNNRootViewController *rnnController = (RNNRootViewController *)controller;
37
+			[rnnController.options applyOn:rnnController];
38
+		}
39
+	}
40
+	
33 41
 	return [super popViewControllerAnimated:animated];
34 42
 }
35 43