Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix activityIndicatorViewColor for iOS4

  • Loading branch information...
commit cdf9359c198515d7dad892bed6fd06eb7d3577aa 1 parent fe9d4c9
@Sephiroth87 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ODRefreshControl/ODRefreshControl.m
View
4 ODRefreshControl/ODRefreshControl.m
@@ -150,14 +150,14 @@ - (UIActivityIndicatorViewStyle)activityIndicatorViewStyle
- (void)setActivityIndicatorViewColor:(UIColor *)activityIndicatorViewColor
{
- if ([_activity isKindOfClass:[UIActivityIndicatorView class]]) {
+ if ([_activity isKindOfClass:[UIActivityIndicatorView class]] && [_activity respondsToSelector:@selector(setColor:)]) {
[(UIActivityIndicatorView *)_activity setColor:activityIndicatorViewColor];
}
}
- (UIColor *)activityIndicatorViewColor
{
- if ([_activity isKindOfClass:[UIActivityIndicatorView class]]) {
+ if ([_activity isKindOfClass:[UIActivityIndicatorView class]] && [_activity respondsToSelector:@selector(color)]) {
return [(UIActivityIndicatorView *)_activity color];
}
return nil;
Please sign in to comment.
Something went wrong with that request. Please try again.