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

前端之家收集整理的这篇文章主要介绍了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方法之后,您不需要释放图像

原文链接:https://www.f2er.com/iOS/331527.html

猜你在找的iOS相关文章