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方法之后,您不需要释放图像

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...