瀏覽代碼

fixed the bug that settings backButton color dynamically does not working (#4513)

Masaru Ichikawa 5 年之前
父節點
當前提交
8434938495
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/ios/RNNNavigationControllerPresenter.m

+ 1
- 1
lib/ios/RNNNavigationControllerPresenter.m 查看文件

@@ -95,7 +95,7 @@
95 95
 		[navigationController rnn_setNavigationBarLargeTitleVisible:newOptions.topBar.largeTitle.visible.get];
96 96
 	}
97 97
 	
98
-	if (newOptions.topBar.backButton.icon.hasValue) {
98
+	if (newOptions.topBar.backButton.icon.hasValue || newOptions.topBar.backButton.showTitle.hasValue || newOptions.topBar.backButton.color.hasValue || newOptions.topBar.backButton.title.hasValue) {
99 99
 		[navigationController rnn_setBackButtonIcon:[newOptions.topBar.backButton.icon getWithDefaultValue:nil] withColor:[newOptions.topBar.backButton.color getWithDefaultValue:nil] title:[newOptions.topBar.backButton.showTitle getWithDefaultValue:YES] ? [newOptions.topBar.backButton.title getWithDefaultValue:nil] : @""];
100 100
 		
101 101
 	}