AIPost *post = [postStore objectAtIndex:[indexPath row]]; cell.dateLabel.text = post.postDate; cell.numberLabel.text = post.postNumber; if (post.image == nil) { [post loadImage]; } cell.imageView.image = post.image; After loading the image in the UIImageView, its dimensions become equal to the size of the image itself.
Has anyone come across or knows how to fix it? For I have already tried to save the UIImageView frame before loading the image, and after loading the new frame to equate to the old one.
Help please, thanks in advance! WITH:
UIViewContentModeparameters? try the methodssetContentHuggingPriority:forAxis:andsetContentCompressionResistancePriority:forAxis:- BiMaWa