iOS隐藏tableview多余的分割线以及解决cell左边短20px
2016-01-27 16:52
459 查看
解决cell分割线左边短20px:
/** * 解决cell分割线左边短20px的问题 */ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { [cell setSeparatorInset:UIEdgeInsetsZero]; } if ([cell respondsToSelector:@selector(setLayoutMargins:)]) { [cell setLayoutMargins:UIEdgeInsetsZero]; } }数据少时,隐藏多余的分割线:
//iOS隐藏tableview多余的分割线: _tableView.tableFooterView = [[UIView alloc] init];
相关文章推荐
- iOS 毛玻璃效果
- iOS开发--常用技巧 (MJRefresh详解)
- iOS 修改状态栏颜色
- 苹果IOS开发者账号总结
- iOS-NSTimer定时器总结
- ios 图形与动画学习笔记 构造路径(CGPathCreateMutable)
- ios开发打开模拟器时提示“Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator”
- iOS Crash 分析
- iOS地图定位设置问题详解
- iOS NSNumber转化NSString之description
- 三:IOS图像学习(原以及实例参考)
- iOS DES+Base64 加密、解密
- ios 审核 2.23 iOS Data Storage 解决方案
- nagios插件之监控if8接口日志(新接口)
- 超全!整理常用的iOS第三方资源
- iOS检测耳机插入/拔出
- [IOS 推送]iOS--通知与消息机制
- iOS9 视图弹出的弹簧效果
- iOS 选择图片过滤掉视频文件
- iOS百度推送的基本使用