Only on iPad devices and only in the latest release 9.3, when you call [PHCachingImageManager requestImageForAsset:] with a valid target size (CGSize), it does not return the correct image. For instance...
PHAsset *asset = self.assetsFetchResults[indexPath.item];
[self.imageManager requestImageForAsset:asset
targetSize:CGSizeMake(101, 101)
contentMode:PHImageContentModeAspectFill
options:nil
resultHandler:^(UIImage *result, NSDictionary *info) {
cell.defectImageView.image = result;
}];
will not return the image. This is displayed as a collection, so the cell image is just black. However, overlaying the target size on 190 190 will return SOME images from the device, but not all. When increasing the target size to 501, 501, all images are returned properly.
Obviously, some of the minimum TargetSize requirements have been changed, but they don't seem to be documented. When I launch this on an iPad with iOS 9.2.1, it works without any problems. Does anyone else experience this?
The radar, but I wanted to check ...
source
share