160113ios 7分割线(separator)不到左边框的问题和去掉底部多余的表格线
2016-01-13 13:16
441 查看
1.分割线(separator)不到左边框的问题
2,
//去掉底部多余的表格线
[tableView setTableFooterView:[[UIView alloc] initWithFrame:CGRectZero]];
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { // Remove seperator inset if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { [cell setSeparatorInset:UIEdgeInsetsZero]; } // Prevent the cell from inheriting the Table View's margin settings if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) { [cell setPreservesSuperviewLayoutMargins:NO]; } // Explictly set your cell's layout margins if ([cell respondsToSelector:@selector(setLayoutMargins:)]) { [cell setLayoutMargins:UIEdgeInsetsZero]; } }
2,
//去掉底部多余的表格线
[tableView setTableFooterView:[[UIView alloc] initWithFrame:CGRectZero]];
相关文章推荐
- iOS开发——创建你自己的Framework && IOS如何在当前工程中导入另一个工程文件
- iOS Block的基本语法与使用
- iOS 定时执行的方法
- ios kvo 的用法
- 如何在Xcode7.2中添加空模板
- iOS What you need to know
- CocoaPods简介及最新详细使用
- ThinkpadE450开启Intel VT
- netty5笔记-总体流程分析4-NioSocketChannel之服务端视角
- iOS-获取手机唯一标识符(获取苹果手机IMEI,获取苹果手机MAC)
- netty5笔记-总体流程分析4-NioSocketChannel之服务端视角
- 分析iOS Crash文件:符号化iOS Crash文件的3种方法
- iOS性能优化三部曲(中级)
- 仿Ios弹窗效果二
- 仿Ios弹窗效果一
- IOS之同步请求、异步请求、GET请求、POST请求
- IOS导航栏、状态栏颜色设置
- iOS中的delegate的用法和规范
- iOS开发之代码规范
- 解决 iOS ViewController Push或者Pop 时的黑影