I have a couple UIButtons, and in IB they\'re set to Aspect Fit, but for some reason they\'re always stretching. Is there something else you have to set? I tried all the d
This overlaps many of the other answers, but the solution for me was to
contentMode
of the UIImageView
for the button to .ScaleAspectFit
– which can either be done in the ”User Defined Runtime Attributes” in Interface Builder (ie. self.imageView.contentMode
, Number, 1) or in a UIButton
subclass;