记录一下。。tableview去掉多余cell
2015-08-28 17:03
106 查看
TableView 去掉多余行数、IOS最后一行Cell系统分割线顶头
(2014-11-21 16:05:12)![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
转载▼
标签:
|
[tableView setTableFooterView:[[UIView alloc] initWithFrame:CGRectZero]];
//最后一行分隔线顶头显示
//http://stackoverflow.com/questions/25770119/ios-8-uitableview-separator-inset-0-not-working
static void setLastCellSeperatorToLeft(UITableViewCell*
cell)
{
if ([cell respondsToSelector:@selector(setSeparatorInset:)])
{
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)])
{
[cell setLayoutMargins:UIEdgeInsetsZero];
}
if([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]){
[cell setPreservesSuperviewLayoutMargins:NO];
}
}
相关文章推荐
- 机器学习实践 学习笔记3 decision trees
- Xcode技巧 - 2
- 3516camshift实现
- hashCode()的作用
- HaXe以及OpenFL部署
- Java笔记:对象,方法,类
- 页面表单里的图片上传ENCTYPE="multipart/form-data"
- machine learning(10) -- classification:logistic regression cost function 和 使用 gradient descent to minimize cost function
- FS G729转码测试记录
- Flex 数字分页组件
- JME3资源管理之一:核心组件介绍
- WPF 设置ComboBox控件的数据源当ComboBox用来作为DataGrid的某列的编辑控件时
- 双色球旋转矩阵算法
- 参考链接
- Overload和Override的区别
- UVA 796 Critical Links
- HTMLPARSER.NET 参考资料
- 文章标题
- 【help of python】ones函数
- IPUtil工具类,获取本机、远程IP