yogevbd 6 년 전
부모
커밋
8cb407c769
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      ios/RCCViewController.m

+ 3
- 0
ios/RCCViewController.m 파일 보기

@@ -405,6 +405,7 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
405 405
         [mergedAttributes addEntriesFromDictionary:previousAttributes];
406 406
 
407 407
         [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
408
+        [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
408 409
       }
409 410
     }
410 411
 
@@ -421,11 +422,13 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
421 422
       [mergedAttributes addEntriesFromDictionary:previousAttributes];
422 423
 
423 424
       [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
425
+      [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
424 426
     }
425 427
 
426 428
     // At the moment, this seems to be the only thing that gets the back button correctly
427 429
     [navButtonTextAttributes removeObjectForKey:NSForegroundColorAttributeName];
428 430
     [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateNormal];
431
+    [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateHighlighted];
429 432
   }
430 433
   
431 434
   NSString *navBarButtonColor = self.navigatorStyle[@"navBarButtonColor"];