Reputation: 1503
In my X-Code project thumbImg is UIImage .when i type thumbImg.image is says Value of type 'UIImage' has no member 'image' . I don't know why its happening. Please help me out
I am using Xcode 7.3.1
I am adding an image of that:
Upvotes: 1
Views: 14624
Reputation: 5331
Use this: thumImg is already declared as a UIImage
thumbImg = UIImage(named: "\(self.pokemon.pokedexId)")
or maybe you wanted your thumbImg to be a UIImageView and not UIImage
Upvotes: 2