UITableView和UITableViewCell的几种样式
2016-03-14 11:34
381 查看
一、 系统自己的UITableView样式有两种:
1. UITableViewStylePlain:
Plain样式的是方形的,充满你给的view.frame坐标。
2. UITableViewStyleGrouped:
Grouped样式主要是以圆角形显示。跟iphone自带的通讯录编辑页面类似。
二、系统自己的UITableViewCell样式有四种:
1.UITableViewCellStyleDefault:
Default样式:左边一个显示图片的imageView,一个标题textLabel,没有detailTextLabel。
2.UITableViewCellStyleSubtitle:
Subtitle样式:左边一个显示图片的imageView,上边一个主标题textLabel,一个副标题detailTextLabel。主标题字体大且加黑,副标题字体小在主标题下边。
3.UITableViewCellStyleValue1:
Value1样式:左边一个显示图片的imageView,左边一个主标题textLabel,右边一个副标题detailTextLabel,主标题字体比较黑。
4.UITableViewCellStyleValue2:
Value2样式:左边一个主标题textLabel字体偏小,挨着右边一个副标题detailTextLabel,字体大且加黑。
1. UITableViewStylePlain:
Plain样式的是方形的,充满你给的view.frame坐标。
2. UITableViewStyleGrouped:
Grouped样式主要是以圆角形显示。跟iphone自带的通讯录编辑页面类似。
二、系统自己的UITableViewCell样式有四种:
1.UITableViewCellStyleDefault:
Default样式:左边一个显示图片的imageView,一个标题textLabel,没有detailTextLabel。
2.UITableViewCellStyleSubtitle:
Subtitle样式:左边一个显示图片的imageView,上边一个主标题textLabel,一个副标题detailTextLabel。主标题字体大且加黑,副标题字体小在主标题下边。
3.UITableViewCellStyleValue1:
Value1样式:左边一个显示图片的imageView,左边一个主标题textLabel,右边一个副标题detailTextLabel,主标题字体比较黑。
4.UITableViewCellStyleValue2:
Value2样式:左边一个主标题textLabel字体偏小,挨着右边一个副标题detailTextLabel,字体大且加黑。
相关文章推荐
- Inventor问题:LNK1104: 无法打开文件"x64\Debug\CustomUI.dll"
- 基于modern ui for wpf的在线公开课平台 之三 使用grid布局
- 使用串口连接Arduino与树莓派开发板
- request.getParameter和request.getAttribute之间的区别
- Mahout随机森林算法源码分析2BuildForest
- 设置UITableView分割线的颜色和位置
- gui设计中的enable问题
- 关于request.setAttribute多页传值,多页取值
- request.getParameter()与request.setAttribute()的区别
- HDU 5288 OO’s Sequence
- Effective Java Second Edition --- Builder Pattern
- Druid连接池简单入门配置
- UIScrollerView循环滚动,加定时器和pageControl
- ligerUIGrid自适应BUG的解决方法
- UITableView优化技巧
- Qt使用教程之使用Qt Quick UI表单(六)
- HDU 5297 Y sequence 容斥 迭代
- UIGestureRecognizer 手势识别
- iOS-UITableView图解
- getpwuid()函数,getpgrgid()函数()