如果我使用[UIImage imageWithCGImage:],传入a CGImageRef,然后释放CGImageRef或者UIImage在解除分配时自己处理吗?
[UIImage imageWithCGImage:]
CGImageRef
文档并不完全清楚.它说"这种方法不会缓存图像对象."
最初我CGImageRelease在传递给CGImageRef后调用它imageWithCGImage:,但是malloc_error_break在模拟器中发出警告声称发生了双重自由.
CGImageRelease
imageWithCGImage:
malloc_error_break
cocoa-touch core-graphics
cocoa-touch ×1
core-graphics ×1