JFImagePickerController icon indicating copy to clipboard operation
JFImagePickerController copied to clipboard

thumbWithAsset方法会返回图片两次

Open shuaiyinoo opened this issue 8 years ago • 2 comments

[[JFImageManager sharedManager] thumbWithAsset:asset resultHandler:^(UIImage *result) { //do something }];

这个方法会返回图片两次 第一次返回略缩图 第二次返回 大图 如何判断是大图还是略缩图

shuaiyinoo avatar Apr 06 '16 07:04 shuaiyinoo

UIImageView *imgV = [[UIImageView alloc] initWithImage:result]; int imgW = imgV.image.size.width; int imgH = imgV.image.size.height; if (imgW == imgH && imgW == 125) { //返回的是略缩图 }

判断宽高的大小是否都等于125 就可以知道是不是小图片了

shuaiyinoo avatar Apr 06 '16 07:04 shuaiyinoo

有时候就走一遍........根本取不到大图......这个三方问题很多很多!!!醉醉的了

Li-Yudong avatar Dec 05 '17 05:12 Li-Yudong