سؤال

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

هل كانت مفيدة؟

المحلول 2

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];

نصائح أخرى

The correct syntax would be:

editViewController.chosenImage.image = self.Image

All the other answers are correct but it's worth explaining that UIImage is just an object. It is a direct subclass of NSObject. UIImageView is a view (subclass of UIView) that takes a UIImage as one of its properties and displays it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top