Sfoglia il codice sorgente

Fixed backButtonImage on iOS

yogevbd 7 anni fa
parent
commit
548f2653c9
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2
    4
      lib/ios/RNNTopBarOptions.m

+ 2
- 4
lib/ios/RNNTopBarOptions.m Vedi File

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
-