I've had some great success adding EXIF data to an images captured from the UIImagePickerControl...Mostly following the examples from other questions. i.e.
- UIImagePickerController and extracting EXIF data from existing photos
- Problem setting exif data for an image
BUT I've never managed to (set and then later retreive) the ImageUniqueID tag (kCGImagePropertyExifImageUniquID)
I've tried vairous combinations:
NSMutableDictionary *EXIFDictionary = [[[metadataAsMutable objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy]autorelease];
[EXIFDictionary setObject:@"1234" forKey:(NSString*)kCGImagePropertyExifImageUniquID];
//[EXIFDictionary setObject[NSNumber numberWithInt:1234] forKey:(NSString*)kCGImagePropertyExifImageUniquID];
[metadataAsMutable setObject:EXIFDictionary forKey:(NSString *)kCGImagePropertyExifDictionary];
//then save the mutable data back to Image
All the other EXIF, TIFF, and IPTC keys I set using this method are succesfully saved and then retrieved later using similar methods.
Any Idea how to set this value?