隐藏UITableView空Cell的Separator Lines
来源:互联网 发布:手机淘宝优惠券在哪里 编辑:程序博客网 时间:2024/05/01 16:05
UITableView加载的时候,会碰到cell的数量不能填满整个屏幕,这个时候,屏幕上会显示空的cell的分隔线,很不爽,解决的方法有2个,
一种是自定义cell,然后设置tableview的separatorStyle为UITableViewCellSeparatorStyleNone,
还有一种方法是定义一个空的UIView,然后将这个UIView设置为tableview的footer,这样就搞定了。
两种方式的代码分别如下
1 myTableView.separatorStyle = UITableViewCellSeparatorStyleNone
2 UIView *footer =[[UIView alloc] initWithFrame:CGRectZero];
myTableView.tableFooterView = footer;
[footer release];
转载自http://www.cnblogs.com/cfxiao/archive/2012/07/22/2603960.html
- 隐藏UITableView空Cell的Separator Lines
- 隐藏UITableView空Cell的Separator Lines
- 问题记录 UITableView的cell之间的separator不见了
- ios tableView隐藏多余的cell分割线separator
- 如何去除UITableView多余的空Cell
- UITableView去除空白cell上多余separator
- UITableView 隐藏空白cell的分割线
- UITableView 隐藏多余Cell的分割线
- UITableView的Separator 绘制问题
- iOS UITableview cell 顶部空白区的去除
- 隐藏UITableview自定义cell中UITexField的弹出键盘
- iOS去掉UITableView多余的separator
- iOS 去除UITableView中多余的separator
- iOS 去掉UITableView 多余的 separator
- UITableView的Cell排序
- UITableView cell的重用
- UITableView cell的重复使用
- UITableView 的 自定义cell
- Android开发 打开文件 选择文件对话框
- 互联网上的免费服务都是怎么赚钱的?(组图)
- http://blog.lesspainful.com/
- 套题总结:2011成都网络赛
- 微论坛:移动互联网使语音互动门槛急剧降低
- 隐藏UITableView空Cell的Separator Lines
- 【Android开发学习17】Android OpenGL ES 光照与混合glDrawElements
- #ifndef、#define和#endif的用法
- ※C++随笔※=>☆C++基础☆=>※№浅谈指针与引用
- Notes On <Agile Web Application Development with Yii 1.1 and PHP5> - 01
- IOS程序之间的文件共享
- calabash
- 写给4年前没有开始做设计的自己
- uva10344 - 23 out of 5