我正在开发一个Xcode应用程序,需要ogg和vorbis框架来播放ogg文件.我已经搜索了有关此的一些信息,但我没有达到任何意义,我不知道如何使这个框架工作.我已经下载了这些库并将它们添加到我的项目中,但即使文件已经存在,我仍然没有得到它编译它抱怨丢失文件.
谁能指点我一本关于如何实现这个目标的好手册?
任何帮助赞赏.
我正在开发一个应用程序,它读取图像的地理位置,并允许用户修改此信息并将此数据写回.我使用writeImageDataToSavedPhotosAlbum函数成功读取数据,操作并写入库.问题是,相反更新原始图像,它会创建一个新图像.
我怎么能更换或更新该项目?
[...]
NSMutableDictionary *EXIFDictionary = [[[metadata objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy]autorelease];
NSMutableDictionary *GPSDictionary = [[[metadata objectForKey:(NSString *)kCGImagePropertyGPSDictionary]mutableCopy]autorelease];
NSMutableDictionary *TIFFDictionray = [[[metadata objectForKey:(NSString *)kCGImagePropertyTIFFDictionary]mutableCopy]autorelease];
Byte *buffer = (Byte*)malloc(representation.size);
NSUInteger buffered = [representation getBytes:buffer fromOffset:0.0 length:representation.size error:nil];
NSData *imageData = [NSData dataWithBytesNoCopy:buffer length:buffered freeWhenDone:YES]; //this is NSData may be what you want
if(!EXIFDictionary) {
//if the image does not have an EXIF dictionary (not all images do), then create one for us to use
EXIFDictionary = [NSMutableDictionary dictionary];
}
if(!GPSDictionary) {
GPSDictionary = [NSMutableDictionary …Run Code Online (Sandbox Code Playgroud)