作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在将kCGImagePropertyExifUserComment写入图像时遇到问题。我的代码(整体)有效,因为它可以轻松编写GPS坐标。但是,无法在UserComment字段中写入一些其他信息(我不确定为什么)。代码是:
CFDictionarySetValue(mutable, kCGImagePropertyExifUserComment, [NSString stringWithFormat:@"%0.0f,%0.0f,%0.0f",yaw,pitch,roll]);
最佳答案
如果其他人想知道如何做到这一点,我终于想通了:
NSDictionary *etcDict=[NSDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithFormat:@"%0.0f,%0.0f,%0.0f",yaw,pitch,roll],kCGImagePropertyExifUserComment,
nil];
CFDictionarySetValue(mutable, kCGImagePropertyExifDictionary, etcDict);
关于objective-c - iOS-向图像添加kCGImagePropertyExifUserComment的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5409127/
如何在 iOS 中的 CGImageMetadataRef 上设置 kCGImagePropertyExifUserComment?这些是我找到的唯一功能,它们仅适用于 MacOS https://g
我是一名优秀的程序员,十分优秀!