Sephiroth87 / ODRefreshControl

A pull down to refresh control like the one in Apple's iOS6 Mail App
MIT License
2.15k stars 385 forks source link

UIAppearanceContainer support #54

Closed groue closed 11 years ago

groue commented 11 years ago

Hi. Thanks for your library.

I had to customize the control appearance.

Capture d e cran du Simulateur iOS 15 fe vr 2013 17 05 40

So I did add UIAppearanceContainer support for tintColor, strokeColor, shadowColor & highlightColor, so that I could write:

@implementation MyViewController

+ (void)initialize
{
    id refreshControlAppearance = [ODRefreshControl appearanceWhenContainedIn:self, nil];
    [refreshControlAppearance setTintColor:[UIColor colorWithWhite:0 alpha:0.25]];
    [refreshControlAppearance setStrokeColor:[UIColor clearColor]];
    [refreshControlAppearance setHighlightColor:[UIColor clearColor]];
    [refreshControlAppearance setShadowColor:[UIColor clearColor]];
}

@end

Let me know if you are interested.