зеркало из https://github.com/github/AFNetworking.git
[Issue #1115] Only set placeholder image if not nil
This commit is contained in:
Родитель
d492c4bff5
Коммит
0c3a4ea712
|
@ -109,7 +109,9 @@ static char kAFImageRequestOperationObjectKey;
|
|||
|
||||
self.af_imageRequestOperation = nil;
|
||||
} else {
|
||||
self.image = placeholderImage;
|
||||
if (placeholderImage) {
|
||||
self.image = placeholderImage;
|
||||
}
|
||||
|
||||
AFImageRequestOperation *requestOperation = [[AFImageRequestOperation alloc] initWithRequest:urlRequest];
|
||||
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче