Difference between background view and content view in uitableviewcell
Hi what is the difference between content view and background vi开发者_如何转开发ew in a uitableviewcell?
As I have read in the apple docs I understand that the content view property is the superview for the content but what is the background view for?
Thanks.
contentView:
The content view of a UITableViewCell object is the default superview for content displayed by the cell.
backgroundView:
The default is nil for cells in plain-style tables (UITableViewStylePlain) and non-nil for grouped-style tables UITableViewStyleGrouped). UITableViewCell adds the background view as a subview behind all other views and uses its current frame location.
Courtesy of the UITableViewCell Class Reference
精彩评论