我正在使用CI过滤器并遇到奇怪的错误,如何通过查看日志知道我缺少什么?
CIFilter *filter = [CIFilter filterWithName:@"CIFalseColor"];
[filter setValue:image forKey:@"inputImage"];
CIColor *myBlue = [CIColor colorWithRed:0.0 green:0.0 blue:0.6 alpha:0.5];
[filter setValue:myBlue forKey:@"inputColor0"];
CIImage *filteredImageData = [filter valueForKey:@"outputImage"];
UIImage *newImage = [UIImage imageWithCIImage:filteredImageData];
_imageView.image=newImage;
2014-02-22 16:04:12.002 colorMaker[1574:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage _imageByUnpremultiplying]: unrecognized selector sent to instance 0x8b7aca0'
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)