Commit b70eeccb authored by yuzheng.tz's avatar yuzheng.tz

优化一些细节

parent 2690f071
......@@ -420,7 +420,7 @@ static dispatch_once_t onceToken;
PHImageRequestOptions *options = [[PHImageRequestOptions alloc] init];
options.resizeMode = PHImageRequestOptionsResizeModeFast;
options.networkAccessAllowed = YES;
if ([[model.asset valueForKey:@"filename"] hasSuffix:@"GIF"]) {
if (model.type == TZAssetModelMediaTypePhotoGif) {
options.version = PHImageRequestOptionsVersionOriginal;
}
[[PHImageManager defaultManager] requestImageDataForAsset:model.asset options:options resultHandler:^(NSData *imageData, NSString *dataUTI, UIImageOrientation orientation, NSDictionary *info) {
......
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