TL; DR . If your custom subclass of UITableViewCell has a @property IBOutlet UIImageView* called imageView , change your name to something else (like customImageView ) and it will work correctly.Read the rest of the answer why
I see that no one answered this, and I spent a whole week trying to find a solution to this, so this is what happened to me and how to prevent it from happening to you (thus fixing your problem).
I created a CustomTableViewCell that extends UITableViewCell .
I added @property (weak, nonatomic) IBOutlet UIImageView *imageView; to your custom cell. Everything seems beautiful so far, right?
Moreover, this is not so.
UITableViewCell already has an imageView property. First, iOS 7 uses your property, but then when the cell is reused, the UITableViewCell imageView is used , so all your restrictions or previously defined fixed sizes are ignored.
iOS 8 always uses an image from a UITableViewCell . therefore, the problem here is more obvious. Previous versions of iOS also had varying degrees of this problem, usually presenting very similar symptoms.
Decision? Either work with the UITableViewCell.imageView property yourself (add code to present the view) or create your own property with a different name , with which you can add restrictions (in case you use auto layout) to storyboards or xib.
source share