Explorar el Código

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

Sergey Ilyevsky hace 6 años
padre
commit
0283257447
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8
    0
      lib/ios/RNNNavigationController.m

+ 8
- 0
lib/ios/RNNNavigationController.m Ver fichero

@@ -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