diff --git a/SDWebImage/UIImageView+WebCache.h b/SDWebImage/UIImageView+WebCache.h index f49d78c..44cd2d7 100644 --- a/SDWebImage/UIImageView+WebCache.h +++ b/SDWebImage/UIImageView+WebCache.h @@ -188,4 +188,9 @@ */ - (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style; +- (BOOL)showActivityIndicatorView; +- (void)addActivityIndicator; +- (void)removeActivityIndicator; + + @end diff --git a/SDWebImage/UIImageView+WebCache.m b/SDWebImage/UIImageView+WebCache.m index f2a42ec..f0823f1 100644 --- a/SDWebImage/UIImageView+WebCache.m +++ b/SDWebImage/UIImageView+WebCache.m @@ -155,11 +155,11 @@ static char TAG_ACTIVITY_SHOW; objc_setAssociatedObject(self, &TAG_ACTIVITY_INDICATOR, activityIndicator, OBJC_ASSOCIATION_RETAIN); } -- (void)setShowActivityIndicatorView:(BOOL)show{ +- (void)setShowActivityIndicatorView:(BOOL)show { objc_setAssociatedObject(self, &TAG_ACTIVITY_SHOW, @(show), OBJC_ASSOCIATION_RETAIN); } -- (BOOL)showActivityIndicatorView{ +- (BOOL)showActivityIndicatorView { return [objc_getAssociatedObject(self, &TAG_ACTIVITY_SHOW) boolValue]; }