Selaa lähdekoodia

Themed UIBarButtonItem: iOS 7 appearance fix

Felix Paul Kühne 11 vuotta sitten
vanhempi
commit
9857015bbe
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      AspenProject/UIBarButtonItem+Theme.m

+ 2 - 2
AspenProject/UIBarButtonItem+Theme.m

@@ -26,9 +26,9 @@
         [doneButton setBackgroundImage:[UIImage imageNamed:@"doneButtonHighlight"]
                               forState:UIControlStateHighlighted
                             barMetrics:UIBarMetricsDefault];
+        [doneButton setTitleTextAttributes:@{UITextAttributeTextShadowColor : [UIColor whiteColor], UITextAttributeTextColor : [UIColor blackColor]}
+                                  forState:UIControlStateNormal];
     }
-    [doneButton setTitleTextAttributes:@{UITextAttributeTextShadowColor : [UIColor whiteColor], UITextAttributeTextColor : [UIColor blackColor]}
-                              forState:UIControlStateNormal];
     return doneButton;
 }