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