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
  •  | 
  •  

Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top