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
If anyone looking for answer that work in iOS 6 and iOS 7 and storyboard:
You can set image in your storyboard:
And then:
for(UIView* testId in self.subviews) { if([testId isKindOfClass:[UIImageView class]]) [testId setContentMode:UIViewContentModeScaleAspectFill]; }