andi1984
andi1984

Reputation: 676

How can I remove a cell.imageView?

I'm wondering why I didn't found anything about removen a imageView within a cell completely. I've worked with the hidden-property, but the area of the image before is still there, so I can not overwrite it completely.

Is there a simple way of removing an cell.imageView completely?

Maybe it is a simple question, but I didn't found a solution so far :-/

Upvotes: 2

Views: 2348

Answers (1)

Alex Coplan
Alex Coplan

Reputation: 13361

Have you tried [cell.imageView removeFromSuperview]; ?

or if you want to just remove the image:

cell.imageView.image = nil;

Upvotes: 4

Related Questions