2016-07-21 8 views

Antwort

0

Try this ...

if let imageData = UIImageJPEGRepresentation(imageForExif, 1.0) { 
     let imageCFData = imageData as CFData 
     if let cgImage = CGImageSourceCreateWithData(imageCFData, nil), let metaDict: NSDictionary = CGImageSourceCopyPropertiesAtIndex(cgImage, 0, nil) { 
      let exifDict: NSDictionary = metaDict.object(forKey: kCGImagePropertyExifDictionary) as! NSDictionary 
      print(exifDict) 
     } 
    } 

Sie können aber nur sehr begrenzte Daten zur Verfügung haben. Ich hoffe es hilft.

Verwandte Themen