Autolayout for Height working in iOS8 but not working in iOS7
问题 I have my UIImageView in the view which will download image from server and after downloading finish then my UIImageView height will be adjusted according to height of image but the problem is it is working perfectly in iOS8 but not in iOS7. In iOS7, the height is scaled to much more than I tried to set. I am setting autolayout via IB Here is the excerpt from my code (default is 250) if(image.size.height<250) headerView.itemImageView.contentMode = UIViewContentModeCenter; else{ adjustedHeight