一、系统自己的UITableView样式有两种:
1.UITableViewStylePlain:Plain样式的是方形的,充满你给的view.frame坐标。
2.UITableViewStyleGrouped:Grouped样式主要是以圆角形显示,支持分组显示。
二、系统自己的UITableViewCell样式有四种:
1.UITableViewCellStyleDefault:
2.UITableViewCellStyleSubtitle:
Subtitle样式:左边一个显示图片的imageView,上边一个主标题textLabel,一个副标题detailTextLabel。主标题字体大且加黑,副标题字体小在主标题下边。
3.UITableViewCellStyleValue1:
Value1样式:左边一个显示图片的imageView,左边一个主标题textLabel,右边一个副标题detailTextLabel,主标题字体比较黑。
4.UITableViewCellStyleValue2:
Value2样式:左边一个主标题textLabel字体偏小,挨着右边一个副标题detailTextLabel,字体大且加黑。
在最前头的image可以通过cell.imageView设置
右边的图标通过cell.accessoryType设置
//取消UITableViewCell选中的状态
UITableViewCell.selectionStyle=UITableViewCellSelectionStyleNone;