How To get Image URL From PHAsset? Is it possible To save Image using PHAsset URL to document Directory?
问题 I used `NSURL *urlA = [info valueForKey:@"PHImageFileURLKey"];` but when i try to save image using URL then URL is nil. `NSData *pngData =[NSData dataWithContentsOfURL:urlA options:NSDataReadingMapped error:nil];` 回答1: asset = Here you have to pass your PHAsset . PHImageRequestOptions * imageRequestOptions = [[PHImageRequestOptions alloc] init]; [[PHImageManager defaultManager] requestImageDataForAsset:asset options:imageRequestOptions resultHandler:^(NSData *imageData, NSString *dataUTI,