зеркало из https://github.com/github/AFNetworking.git
[Issue #803] Only set image in UIImageView category if non-nil
Signed-off-by: Mattt Thompson <m@mattt.me>
This commit is contained in:
Родитель
7673c3e1d0
Коммит
b42ea1fdb6
|
@ -117,7 +117,7 @@ static char kAFImageRequestOperationObjectKey;
|
|||
if ([urlRequest isEqual:[self.af_imageRequestOperation request]]) {
|
||||
if (success) {
|
||||
success(operation.request, operation.response, responseObject);
|
||||
} else {
|
||||
} else if (responseObject) {
|
||||
self.image = responseObject;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче