yogevbd 6 år sedan
förälder
incheckning
8cb407c769
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      ios/RCCViewController.m

+ 3
- 0
ios/RCCViewController.m Visa fil

@@ -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"];