yogevbd 6 年前
父节点
当前提交
15273ec4fe
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      lib/ios/RNNBackButtonOptions.m

+ 4
- 4
lib/ios/RNNBackButtonOptions.m 查看文件

@@ -4,6 +4,10 @@
4 4
 @implementation RNNBackButtonOptions
5 5
 
6 6
 - (void)applyOn:(UIViewController *)viewController {
7
+	if (self.showTitle && ![self.showTitle boolValue]) {
8
+		self.title = @"";
9
+	}
10
+	
7 11
 	if (self.icon) {
8 12
 		UIImage *image = self.tintedIcon;
9 13
 		[viewController.navigationController.navigationBar setBackIndicatorImage:[UIImage new]];
@@ -23,10 +27,6 @@
23 27
 	if (self.visible) {
24 28
 		viewController.navigationItem.hidesBackButton = ![self.visible boolValue];
25 29
 	}
26
-	
27
-	if (self.showTitle && ![self.showTitle boolValue]) {
28
-		self.title = @"";
29
-	}
30 30
 }
31 31
 
32 32
 - (void)setBackItem:(UIBarButtonItem *)backItem onViewController:(UIViewController *)viewController {