Adding explicit cast for associated image request operation object in UIImageView category
This commit is contained in:
parent
d4e34f76bf
commit
9a2b90c698
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ static NSString * const kUIImageViewImageRequestObjectKey = @"imageRequestOperat
|
||||||
@implementation UIImageView (AFNetworking)
|
@implementation UIImageView (AFNetworking)
|
||||||
|
|
||||||
- (AFHTTPRequestOperation *)imageRequestOperation {
|
- (AFHTTPRequestOperation *)imageRequestOperation {
|
||||||
return objc_getAssociatedObject(self, kUIImageViewImageRequestObjectKey);
|
return (AFHTTPRequestOperation *)objc_getAssociatedObject(self, kUIImageViewImageRequestObjectKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setImageRequestOperation:(AFImageRequestOperation *)imageRequestOperation {
|
- (void)setImageRequestOperation:(AFImageRequestOperation *)imageRequestOperation {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue