怎样设置UITableView的cell之间的距离
来源:互联网 发布:实战nginx 编辑:程序博客网 时间:2024/05/29 16:53
m
两种方式,看你的tableView是哪种样式。如果是UITableViewStylePlain,你可以将UITableViewCell的separator设置为UITableViewCellSeparatorStyleNone。将tableViewCell的背景色,contentView的背景色设置为透明,在contentView中添加一个UIImageView做为背景,使UIImageView的高度小于cell的高度,这样创建出的tableView就可以使每个cell之间看起来有一定间隔。这个间隔就是imageView的高度与cell的高度之间的差值。如果你的tableView样式是UITableViewStyleGrouped,那就更好办了,因为group的tableView每个section都是隔开的,你只需要给每个section添加一行cell就行了。如果需要调整section之间的距离,你可以用UITableView的属性sectionHeaderHeight或sectionFooterHeight来设置。也可以用delegate方法来设置高度,heightForHeaderInSection或heightForFooterInSection
0 0
- 怎样设置UITableView的cell之间的距离
- 怎么设置UITableView Cell之间的距离
- 设置UITableView的section之间的距离
- 设置UITableView的section之间的距离
- UITableView设置行与行之间的距离
- UITableView的cell一些设置
- UITableview cell之间间距设置
- UITableView 的Cell之间的间隔
- 怎样使用CSS设置文字之间的距离?
- IOS uitableview中cell的分割线设置距离,并且去掉cell的边框,要不然多了一条细线
- UITableView 关于cell与cell之间的间距
- UITableView 每次滑动一个cell的高度的距离
- 设置UITableView cell的左边距
- 设置UITableView的cell能否被选中
- iOS开发中设置UITableView每组头试图与第一行cell之间的分割线
- 问题记录 UITableView的cell之间的separator不见了
- UITableView的Cell排序
- UITableView cell的重用
- using的一点点认识
- Qt插件制作笔记part1
- java压缩文件夹或文件
- Event order
- C#中String.Trim方法
- 怎样设置UITableView的cell之间的距离
- window.open()
- 如何查看并杀死僵尸进程?
- 70个shell常用操作
- IOS 给类目添加属性
- 面试题16:反转链表
- 如何用Jmeter做压力测试
- SSH action 中通过'.',无法给action中对象赋值
- 自然对数