I'm trying to get the information in the description of a PNG file.
In iOS 10.3.3 I used the following Objective-C code:
NSString pngFile = @"Demo.PNG"
CGImageSourceRef imgSrc = CGImageSourceCreateWithURL( (__bridge CFURLRef)[NSURL fileURLWithPath:pngFile], NULL);
NSDictionary *metaDataDict = CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(imgSrc, 0, nil));
if (imgSrc!=nil) {
NSDictionary *metaDataDict = (__bridge NSDictionary *)(CGImageSourceCopyPropertiesAtIndex(imgSrc, 0, nil));
CFRelease(imgSrc);
}
and the results were as expected but after iOS 11 update, I'm unable to get the metadata information (description field) of a PNG file using the CGImageSourceCopyPropertiesAtIndex function. The description field of the metadata (PNG file) is empty. Any Idea?