I have 3 views. 1. It\'s the main view and it contains the other two views. 2. It\'s a view that is bigger than the first.
what is the diffe开发者_如何学Gorence between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill...?You can see the differences between the content modes here:
I set a UIImage for my UIButton using [myButton setImage:forState:]; and I set it\'s contentMode using [[myButton imageView] setContentMode:UIViewContentModeScaleAspectFit];
I have an image that I would like to display in a UITableViewCell using the UITableViewCellStyleSubtitle style that provides a UIImageView, and two lines of text, plus an optional accessory view.
firstBu开发者_开发技巧tton is a UIButton of type Custom. I\'m programmatically putting three of them across each cell of a table, thusly:
In UITableViewCellStyleDefault, setting the contentMode on the imageView has no result.If I change my build SDK to version 3.1, everything again works.