From 14b79734d26f73df6a22ee1b769a82486dadb805 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Thu, 22 Mar 2012 10:33:07 +0100 Subject: [PATCH] Add some common problem tips --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 41329d5..3722498 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,22 @@ By default, the image will be stored in memory cache as well as on disk cache (a you want only the memory cache, use the alternative method storeImage:forKey:toDisk: with a negative third argument. +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 +don't have the same size as your placeholder image, you may experience strange anamorphic scaling issue. +The following article gives a way to workaround this issue: + +[http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/](http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/) + Automatic Reference Counting (ARC) ----------------------------------