7

我正在使用代码为图像提供不同的效果,如对比度、色调、饱和度等;并使用苹果glImageProcessing代码,我从我的视图跳转到glimgeProcessing,并将生成的图像保存到uiimage文件中的属性appDelegate。从 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.

请帮忙

4

1 回答 1

1

看起来像您发布的内容app.image或某处。可能你有多余的

CGImageRelease(app.image.CGImage);

或者

[app.image release]

注意,你不需要发布图像之后ALAsset.fullResolutionImagefullScreenImage方法

于 2014-01-08T17:30:45.537 回答