在这种情况下,如何从 UIImage 获取日期或元数据:
//UIImagePickerControllerSourceType
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
//delegate return
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
// po info in console -> there is no metadata of the image where i can find the date
// Has anyone an idea how to get it?
}
如果您指的是图像中的 EXIF 元数据(其中包括日期信息),您可以查看此问题以获取有关如何访问它的信息:
如何在 iOS 4.0+ 中访问从相机拍摄的照片中的照片 EXIF?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)