I set a UIImage
for my UIButton using [myButton setImage:forState:];
and I set it's contentMode
using [[myButton imageView] setContentMode:UIViewContentModeScaleAspectFit];
But when you tap the button, it goes back to UIViewContentModeScaleToFill
and stretches my image out.
using adjustsImageWhenHighlighted
fixes this, but then I loose the darkening effect, which I would like to keep.
Any suggestions on how to cope with this?