ソースを参照

Fixed backButtonImage on iOS

yogevbd 6 年 前
コミット
548f2653c9
共有1 個のファイルを変更した2 個の追加4 個の削除を含む
  1. 2
    4
      lib/ios/RNNTopBarOptions.m

+ 2
- 4
lib/ios/RNNTopBarOptions.m ファイルの表示

148
 	}
148
 	}
149
 	
149
 	
150
 	UIImage *image = self.backButtonImage ? [RCTConvert UIImage:self.backButtonImage] : nil;
150
 	UIImage *image = self.backButtonImage ? [RCTConvert UIImage:self.backButtonImage] : nil;
151
-	[[UINavigationBar appearance] setBackIndicatorImage:image];
152
-	[[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:image];
151
+	[viewController.navigationController.navigationBar setBackIndicatorImage:image];
152
+	[viewController.navigationController.navigationBar setBackIndicatorTransitionMaskImage:image];
153
 	
153
 	
154
 	if (self.hideBackButtonTitle) {
154
 	if (self.hideBackButtonTitle) {
155
 		self.backButtonTitle = @"";
155
 		self.backButtonTitle = @"";
188
 }
188
 }
189
 
189
 
190
 @end
190
 @end
191
-
192
-