首页 > 其他 > 详细

UITableView和UITableViewCell的几种样式

时间:2015-10-27 23:47:50      阅读:299      评论:0      收藏:0      [点我收藏+]

UITableView和UITableViewCell的几种样式

   转至  http://blog.csdn.net/crazyzhang1990/article/details/12503163

一、系统自己的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,字体大且加黑。

UITableView和UITableViewCell的几种样式

原文:http://www.cnblogs.com/developer-ios/p/4915934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!