IOS 9 UITableView整理
首先,UITableView有两种风格:UITableViewStylePlain和UITableViewStyleGrouped。 然后,UITableViewCellStyle的样式 typedef NS_ENUM(NSInteger, UITableViewCellStyle) { UITableViewCellStyleDefault, // 左侧显示textLabel(不显示detailTextLabel),imageView可选(显示在最左边) UITableViewCellStyleValue1, // 左侧显示textLabel、右侧显示detailTextLabel(默认蓝色),imageView可选(显示在最左边) UITableViewCellStyleValue2, // 左侧依次显示textLabel(默认蓝色)和detailTextLabel,imageView可选(显示在最左边) UITableViewCellStyleSubtitle // 左上方显示textLabel,左下方显示detailTextLabel(默认灰色),imageView可选(显示在最左边)}; 当然也可以自定义TableViewCell。 要使用UITableView必须要实现两个协议UITableViewDataSource和UITableViewDelegate