[ios] Fixed bug with big bottom menu icons.

This commit is contained in:
Timur Bernikowich 2014-12-05 15:57:28 +03:00 committed by Alex Zolotarev
parent ddb2babad3
commit b6c60ac710

View file

@ -129,11 +129,12 @@
NSString * itemId = item[@"Id"];
NSString * imageName = itemId;
NSString * imagePath = [[self imagesPath] stringByAppendingPathComponent:imageName];
UIImage * image = [UIImage imageNamed:imagePath];
NSData * imageData = [NSData dataWithContentsOfFile:imagePath];
UIImage * image;
if (imageData)
image = [UIImage imageWithData:imageData scale:[UIScreen mainScreen].scale];
if (image)
{
cell.iconImageView.image = image;
}
else if (!self.imageDownloaders[itemId])
{
ImageDownloader * downloader = [[ImageDownloader alloc] init];