Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AsyncImageView/AsyncImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
NSString *const AsyncImageCacheKey = @"cache";
NSString *const AsyncImageErrorKey = @"error";

CGFloat const AsyncImageRetinaScale = 2.0;

@interface AsyncImageConnection : NSObject

Expand Down Expand Up @@ -178,7 +179,7 @@ - (void)processDataInBackground:(NSData *)data
{
if (!_cancelled)
{
UIImage *image = [[UIImage alloc] initWithData:data];
UIImage *image = [UIImage imageWithData:data scale:AsyncImageRetinaScale];
if (image)
{
//add to cache (may be cached already but it doesn't matter)
Expand Down