firstButton is a UIButton of type Custom. I\'m programmatically putting three of them across each cell of a table, thusly:
[firstButton setImage:markImage fo
Only solution which worked for me:
[button setImage:image forState:UIControlStateNormal];
button.imageView.contentMode = UIViewContentModeScaleAspectFill;
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentFill;
button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;