How can you programmatically retrieve the comments made on a photo in your iOS photo stream?

StackOverflow https://stackoverflow.com/questions/22122571

  •  18-10-2022
  •  | 
  •  

質問

ALAsset contains the metadata for an image, which includes resolution, camera settings and location, but it doesn't appear to include comments from a photo stream.

That makes sense, but I would like to retrieve those comments.

Does anyone know if it is possible and where they might be stored?

役に立ちましたか?

解決

It appears that you can access user comments for a specific image format only. The one mentioned is for Exchangeable Image File Format (EXIF).

const CFStringRef kCGImagePropertyExifUserComment;

Take a look the CGImageProperties Reference.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top