Search code examples
swift2uiimageios9

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


Solution

  • 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