Exposed the activity indicator methods from UIImageView+WebView so we can use them in a future category

This commit is contained in:
Bogdan Poplauschi 2016-06-01 09:42:39 +03:00
parent 8f4a9dae2d
commit debc0d4827
2 changed files with 7 additions and 2 deletions

View File

@ -188,4 +188,9 @@
*/ */
- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style; - (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style;
- (BOOL)showActivityIndicatorView;
- (void)addActivityIndicator;
- (void)removeActivityIndicator;
@end @end

View File

@ -155,11 +155,11 @@ static char TAG_ACTIVITY_SHOW;
objc_setAssociatedObject(self, &TAG_ACTIVITY_INDICATOR, activityIndicator, OBJC_ASSOCIATION_RETAIN); 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); objc_setAssociatedObject(self, &TAG_ACTIVITY_SHOW, @(show), OBJC_ASSOCIATION_RETAIN);
} }
- (BOOL)showActivityIndicatorView{ - (BOOL)showActivityIndicatorView {
return [objc_getAssociatedObject(self, &TAG_ACTIVITY_SHOW) boolValue]; return [objc_getAssociatedObject(self, &TAG_ACTIVITY_SHOW) boolValue];
} }