瀏覽代碼

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

Sergey Ilyevsky 6 年之前
父節點
當前提交
0283257447
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      lib/ios/RNNNavigationController.m

+ 8
- 0
lib/ios/RNNNavigationController.m 查看文件

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