代码改变生活

UITableViewCell 单元格样式

UITableViewCell 单元格样式作用

1 typedef NS_ENUM(NSInteger, UITableViewCellStyle) {
2     UITableViewCellStyleDefault,    // Simple cell with text label and optional image view (behavior of UITableViewCell in iPhoneOS 2.x)
3     UITableViewCellStyleValue1,        // Left aligned label on left and right aligned label on right with blue text (Used in Settings)
4     UITableViewCellStyleValue2,        // Right aligned label on left with blue text and left aligned label on right (Used in Phone/Contacts)
5     UITableViewCellStyleSubtitle    // Left aligned label on top and left aligned label on bottom with gray text (Used in iPod).
6 };             // available in iPhone OS 3.0

UITableViewCellStyleDefault 默认类型 可显示 标题+可选图像

UITableViewCellStyleValue1                      (图像占大格标题在和明细处于同一行 文字堆叠) 标题+明细+图像

 UITableViewCellStyleValue2        不显示图像,标题+明细 文字变亮蓝色

 UITableViewCellStyleSubtitle        (图像占大格标题在上明细在下)标题+明细+图像

posted on 2015-05-16 01:13  张大少。  阅读(387)  评论(0编辑  收藏  举报

导航

繁星纵变 智慧永恒