ios – – [Not A Type _cfTypeID]:发送到解除分配的实例的消息

我正在使用代码为图像提供不同的效果,如对比度,色调,饱和度等;并使用了apple gl ImageProcessing代码,我从我的视图跳转到glimgeProcessing,并将结果图像保存到appDelegate文件中的uiimage属性.从Eagle视图返回后,我使用viewDidAppear函数将我的图像视图更改为更新的图像
"-[Not A Type _cfTypeID]: message sent to deallocated instance"

我的代码是

NSLog(@"app imafe is %@",app.image);

[imageView setImage:app.image];

我的日志响应是

2013-07-26 13:39:37.293 imageProcessingApp[1019:11303] app imafe is <UIImage: 0x73c4100>
2013-07-26 13:39:39.482 imageProcessingApp[1019:11303] app imafe is <UIImage: 0x90e0420>
2013-07-26 13:39:39.483 imageProcessingApp[1019:11303] *** -[Not A Type _cfTypeID]: message sent to deallocated instance 0x90e0b60

尝试将图像设置为我的imageView时出现问题.

请帮忙

解决方法

看起来像你发布app.image或某个地方.可能你有额外的
CGImageRelease(app.image.CGImage);

要么

[app.image release]

注意,在ALAsset.fullResolutionImage和fullScreenImage方法之后,您不需要释放图像

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...