MD Sazid Hasan Dip
MD Sazid Hasan Dip

Reputation: 1503

Value of type 'UIImage' has no member 'image'

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:

code

Upvotes: 1

Views: 14624

Answers (1)

Akshansh Thakur
Akshansh Thakur

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

Related Questions