Exposed the activity indicator methods from UIImageView+WebView so we can use them in a future category
This commit is contained in:
parent
8f4a9dae2d
commit
debc0d4827
|
@ -188,4 +188,9 @@
|
||||||
*/
|
*/
|
||||||
- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style;
|
- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style;
|
||||||
|
|
||||||
|
- (BOOL)showActivityIndicatorView;
|
||||||
|
- (void)addActivityIndicator;
|
||||||
|
- (void)removeActivityIndicator;
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue