我试图将GDATAXML自动转换为ARC,其中折射器->在XCode 4.2中转换为ARC Objective。
ARC转换器产生以下错误:
result = [NSString stringWithUTF8String:(const char *) chars];
if (cacheDict) {
// save the string in the document's string cache
CFDictionarySetValue(cacheDict, chars, result);
}错误:将Ojective-C指针转换为空。
是否有人成功地将GDATAXML Libs转换为ARC目标-C?
发布于 2012-02-15 18:35:19
请按照关于如何使GDataXML在您的代码上工作的说明:http://ibombsite.blogspot.com/2012/02/how-to-make-gdataxmlnode-work.html
发布于 2014-05-30 20:07:21
我发现有人(显然成功)完成了ARC的重构。
请参阅:http://www.michaelbabiy.com/arc-compliant-gdataxml-library/
发布于 2012-01-18 15:51:50
您需要使用桥接转换:
CFDictionarySetValue(cacheDict, chars, (__bridge_retained_void*) result);
看看苹果的文章“过渡到ARC”,特别是关于贿赂的部分。
https://stackoverflow.com/questions/8875027
复制相似问题