PHAsset get original file name

后端 未结 4 1018

I wonder if there any way to get the original file name using PHAsset?

I use the following code to extract the file info.

   [[PHImageManager defaultMa         


        
4条回答
  •  一整个雨季
    2021-01-31 20:15

    Maybe you can use the method, it works above iOS8:

     [asset requestContentEditingInputWithOptions:options completionHandler:^(PHContentEditingInput *contentEditingInput, NSDictionary *info) {
    
        CIImage *fullImage = [CIImage imageWithContentsOfURL:contentEditingInput.fullSizeImageURL];
        NSLog(@"%@",contentEditingInput.fullSizeImageURL);//get url
        NSLog(@"%@", fullImage.properties.description);//get {TIFF}, {Exif}
    }];
    

提交回复
热议问题