Permalink
Browse files

added color handling

  • Loading branch information...
1 parent 2bd3240 commit 3bb61a600a02baae952916787c71f6e8287ea631 @ettore committed Dec 13, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 CLCGBarButtonItem.m
View
@@ -11,6 +11,10 @@
#import "UIViewCategory.h"
+@interface CLCGBarButtonItem ()
+-(UIActivityIndicatorView*)spinner;
+@end
+
@implementation CLCGBarButtonItem
@@ -135,6 +139,21 @@ - (id)initWithImage:(UIImage*)img
}
+-(UIActivityIndicatorView*)spinner
+{
+ return (UIActivityIndicatorView*)[mToggler secondView];
+}
+
+
+-(void)setTintColor:(UIColor*)col
+{
+ if (clcg_os_geq(@"5.0")) {
+ [super setTintColor:col];
+ [[self spinner] setColor:col];
+ }
+}
+
+
-(void)setState:(enum CLCGBarButtonItemState)state
{
switch (state) {

0 comments on commit 3bb61a6

Please sign in to comment.