Hi,
I'm trying to improve scrolling performance on a UITableView
that uses cells with images fetched from the web, but stored in the NSCachesDirectory
. The cells have a custom content view to draw the contents (an image).
When I use a placeholder image from the app bundle, using [UIImage imageNamed:@"Placeholder.png"]
, scrolling performance is super fast.
When I load an image from the disk cache (NSCachesDirectory
) using [UIImage imageWithContentsOfFile:cachePath]
, scrolling performance gets worse.
According to the documentation, imageNamed:
caches the image and imageWithContentsOfFile:
does not.
How to use UIImage
's system cache when using imageWithContentsOfFile:
?
Thanks a bunch!