Several styles of UITableView and UITableViewCell in iOS development

         What I want to share today is a control with a very high usage rate in IOS development--UITableView. In the past two days, tableview is being used for information display. When writing code, several styles of tableview and tableviewcell have been divided. I'm not sure, I studied it in detail today, and I'll share it with you below:
1. There are two styles of UITableView: 1. UITableViewStylePlain
: The

Plain style is square and filled with the view.frame coordinates you gave.
2.UITableViewStyleGrouped: The

Grouped style is mainly displayed in rounded corners. It is similar to the address book editing page that comes with the iPhone.

2. There are four styles of the system's own UITableViewCell:
1.UITableViewCellStyleDefault:

Default style: an imageView showing pictures on the left, a title textLabel, and no detailTextLabel.
2.UITableViewCellStyleSubtitle:

Subtitle style: an imageView showing the picture on the left, a main title textLabel on the top, and a subtitle detailTextLabel. The main title is in large and blackened font, and the subtitle is in small font below the main title.
3.UITableViewCellStyleValue1:

Value1 style: an imageView on the left that displays the picture, a main title textLabel on the left, a subtitle detailTextLabel on the right, and the main title font is black.
4.UITableViewCellStyleValue2:

Value2 style: the main title textLabel on the left has a small font, and the subtitle detailTextLabel on the right is large and black.
That's all, Thank you for support.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326847555&siteId=291194637