UITableViewCell的显示格式
来源:互联网 发布:百度最新算法 编辑:程序博客网 时间:2024/04/29 15:36
iPhone提供了4种基本的表格视图单元格,在SDK 3.0 之后,每个单元格都有3个属性textLabel,detailTextLabel和imageView。
下面一一介绍这4种基本格式:
1、UITableViewCellStyleDefault
该格式提供了一个简单的左对齐的文本标签textLabel和一个可选的图像imageView。如果显示图像,那么图像将在最左边。
这种格式虽然可以设置detailTextLabel,但是不会显示该标签。
2、UITableViewCellStyleSubtitle
该格式与前一种相比,增加了对detailTextLabel的支持,该标签将会显示在textLabel标签的下面,字体相对较小。
3、UITableViewCellStyleValue1
该格式居左显示textLabel,居右显示detailTextLabel,且字体较小。
该格式不支持图像。
4、UITableViewCellStyleValue2
该格式居左现实一个小型蓝色主标签textLabel,在其右边显示一个小型黑色副标题详细标签detailTextLabel。
该格式不支持图像
个人感觉,格式1和2使用较多,如果这两种不能满足我的要求,那么就采用定制UITableViewCell的方式。
- UITableViewCell的显示格式
- UITableViewCell的显示格式
- UITableViewCell的显示格式
- UITableViewCell的显示格式
- ios开发---UITableViewCell的显示格式
- UITableViewCell的4种显示格式
- UITableViewCell的4种显示格式
- UITableViewCell - 4种显示格式
- UITableViewCell的显示错误
- UITableViewCell 多余的分割线不显示
- 让UITableViewCell的分隔线显示完全
- UItableViewCell的分割线顶头显示
- 动态显示UITableViewCell高度和UITableViewCell图文混排页面卡动问题的解决
- uitableviewcell中的文字显示
- UITableViewCell 显示类别
- UITableViewCell显示混乱问题
- UITableViewCell显示动画
- timestamp的显示格式
- 通过sim900短信收发控制stm32设备
- myeclipse9创建s2sh项目全过程1
- ip camera手机集成,android手机上显示ip camera视频
- C语言中volatile关键字的作用
- NHibernate中的Session Context问题
- UITableViewCell的显示格式
- 移动互联网时代袭来 马化腾先生这样看
- PHP中substr() mb_substr() mb_struct()的区别和用法
- 平衡二叉树(AVL)
- goolge 中国2014面试
- eclipse添加自动换行功能
- Java网络通信Socket
- postgreSQL查询分页
- 关于fork的一道题目