diff --git a/SDWebImage/UIView+WebCache.m b/SDWebImage/UIView+WebCache.m index 1ebd3e71..71672529 100644 --- a/SDWebImage/UIView+WebCache.m +++ b/SDWebImage/UIView+WebCache.m @@ -335,7 +335,7 @@ static char TAG_ACTIVITY_SHOW; } - (void)sd_setIndicatorStyle:(UIActivityIndicatorViewStyle)style{ - objc_setAssociatedObject(self, &TAG_ACTIVITY_STYLE, [NSNumber numberWithInt:style], OBJC_ASSOCIATION_RETAIN); + objc_setAssociatedObject(self, &TAG_ACTIVITY_STYLE, [NSNumber numberWithInteger:style], OBJC_ASSOCIATION_RETAIN); } - (int)sd_getIndicatorStyle{