Search code examples
uiimageviewuiimageuiimagepickercontrollerincompatibletypeerror

incompatible pointer types assigning to 'UIImageView*' from 'UIImage*'


Hi I am getting this error on my code, I have no clue how to fix it . enter image description here

Suggestions and answers would be awesome. Thanks :D


Solution

  • Very much understood from the error that you are pointing UIImage to UIImageview that is not compatible. So You need to use the property image of UIImageview as follows:

    [editViewController.chosenImage setImage:self.Image];