Commit ae034fd8 authored by banchichen's avatar banchichen

修复iCloud图片预览时图片尺寸不对等问题

parent c49d55cf
......@@ -411,7 +411,7 @@ static CGFloat TZScreenScale;
PHAsset *phAsset = (PHAsset *)asset;
CGFloat aspectRatio = phAsset.pixelWidth / (CGFloat)phAsset.pixelHeight;
CGFloat pixelWidth = photoWidth * TZScreenScale;
CGFloat pixelHeight = photoWidth / aspectRatio;
CGFloat pixelHeight = pixelWidth / aspectRatio;
imageSize = CGSizeMake(pixelWidth, pixelHeight);
}
// 修复获取图片时出现的瞬间内存过高问题
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment