Explorar o código

Themed UIBarButtonItem: iOS 7 appearance fix

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
9857015bbe
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 }