Search code examples
iosobjective-cgpuimage

Incompatible pointer types sending 'UIImageView' to parameter of type 'UIImage*' (xcode5)


I get a error in this code line:

GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:_imagView];

And this is the error:

Incompatible pointer types sending 'UIImageView' to parameter of type 'UIImage*'

Does somebody know what I have to do?


Solution

  • Issue

    Passing argument of UIImageView instead of UIImage

    Solution

    Change code back to :

    GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:_imagView.image];