UITableView 去掉多余行数、Cell系统分割线顶头
2016-03-10 09:59
495 查看
转自:/article/11543025.html
//去掉底部多余的表格线
//最后一行分隔线顶头显示
//去掉底部多余的表格线
[self.mineTableView 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]; } }
相关文章推荐
- 关于request.getServletPort()获取访问地址的说明
- string拼接和StringBuilder性能对比
- Explicit Interface Implementation (C# Programming Guide)
- String,StringBuilder,StringBuffer的区别
- [LeetCode]62. Unique Paths
- Interfaces (C# Programming Guide)
- 修改UIcontrollerTableView某一行的高度
- KVC中setValuesForKeysWithDictionary:
- LeetCode Distinct Subsequences
- 背水一战 Windows 10 (2) - UI: 概述, 启动屏幕, 屏幕方向
- build st-crowd
- MathType requires a newer version of MT Extra等MathType问题的不兼容性解决方案
- UIWindow 实现遮盖导航条的蒙版
- Mysql 连接数据库超时设置autoReconnect=true
- @RequestParam @RequestBody @PathVariable 等参数绑定注解详解
- jquer “$” 扩展(笔记)
- lintcode-easy-Unique Paths II
- lintcode-easy-Unique Paths
- 非UI线程可不可以更新UI(二)
- 《EasyUI》——给DataGrid动态绑定表头和数据,实现表头与数据的真正解耦