Fix the no image issue when no placeholder image is used with UITableViewCell default templates
This commit is contained in:
parent
46cc079069
commit
c474512548
|
@ -197,11 +197,6 @@ the URL before to use it as a cache key:
|
|||
Common Problems
|
||||
---------------
|
||||
|
||||
### No image appear when using UITableViewCell
|
||||
|
||||
If choose to use a default cell template provided by UITableViewCell with SDWebImage, ensure you are
|
||||
providing a placeholder image, otherwise the cell will be initialized with no image.
|
||||
|
||||
### Using dynamic image size with UITableViewCell
|
||||
|
||||
UITableView determins the size of the image by the first image set for a cell. If your remote images
|
||||
|
|
|
@ -70,11 +70,13 @@
|
|||
- (void)webImageManager:(SDWebImageManager *)imageManager didProgressWithPartialImage:(UIImage *)image forURL:(NSURL *)url
|
||||
{
|
||||
self.image = image;
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
|
||||
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
|
||||
{
|
||||
self.image = image;
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue