Closed qylibohao closed 8 years ago
PHImageRequestOptionsDeliveryModeOpportunistic
might call the completion handler more than once. In your case it returns nil every single time or does it show a degraded image first and then nil?
Try self.requestOptions.synchronous = NO;
@qylibohao Please check the documentation of PHImageManger
i use the phimagemager to request the image form cloud, the request options is below: self.requestOptions = [[PHImageRequestOptions alloc] init]; self.requestOptions.version = PHImageRequestOptionsVersionCurrent; self.requestOptions.resizeMode = PHImageRequestOptionsResizeModeFast; self.requestOptions.deliveryMode = PHImageRequestOptionsDeliveryModeOpportunistic; self.requestOptions.networkAccessAllowed = YES; self.requestOptions.synchronous = YES;
but the result handler block always return nil image .why??