jjzjj

CGImageSourceCreateWithData

全部标签

iphone - 与 _CGImageSourceCreateWithData 相关的链接错误

编译时出现错误。Undefinedsymbolsforarchitecturearmv6:"_CGImageSourceCreateWithData",referencedfrom:___-[AVCamCaptureManagercaptureStillImage]_block_invoke_1inAVCamCaptureManager.o"_CGImageSourceCopyPropertiesAtIndex",referencedfrom:___-[AVCamCaptureManagercaptureStillImage]_block_invoke_1inAVCamCaptureM

iphone - 如果我从 (__bridge) 使用 CGImageSourceCreateWithData,是否需要 "CFRelease"?

我的问题很简单,我想知道"CGImageSourceCreateWithData"方法是否创建了一个复制我提供的数据的新对象,以便我在不需要时必须释放它不再使用它,或者如果它只是创建对我已经拥有的数据的引用,那么如果我释放它,我将丢失这些数据(并且可能出现错误的访问错误)。此问题与使用(__bridgeCFDataRef)作为源数据有关。这让我可以在ARC模式下免费使用CoreFoundation对象。考虑以下函数(或方法,不确定它是如何调用的):-(void)saveImageWithData:(NSData*)jpegandDictionary:(NSDictionary*)dic