NSURL *url1 = [[NSURLalloc] initWithString:array[0]];
AVURLAsset *urlAsset = [[AVURLAssetalloc] initWithURL:url1 options:nil];
AVAssetImageGenerator *imageGenerator = [[AVAssetImageGeneratoralloc] initWithAsset:urlAsset];
imageGenerator.appliesPreferredTrackTransform = YES; // 截图的时候调整到正确的方向
CMTime time = CMTimeMakeWithSeconds(0, 30); // 1.0为截取视频1.0秒处的图片,30为每秒30帧
CGImageRef cgImage = [imageGenerator copyCGImageAtTime:time actualTime:nilerror:nil];
UIImage *image11 = [UIImageimageWithCGImage:cgImage];
cell.image11.image=image11;