- (void)viewDidLoad
{
[super viewDidLoad];
self.automaticallyAdjustsScrollViewInsets = NO;
if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)])
{
[self.tableView setSeparatorInset:UIEdgeInsetsZero];
}
if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)])
{
[self.tableView setLayoutMargins:UIEdgeInsetsZero];
}
}

表视图代理方法

- (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];
}
}

最新文章

  1. spring 整合 mongo
  2. Linux链接库三(C跟C++之间动态库的相互调用)
  3. HTML5 - 使用<video>播放视频
  4. Model&Animation
  5. java多线程为什么要用while而不是if
  6. easyui源码翻译1.32--Window(窗口)
  7. linux下查看和设置软件的安装路径
  8. APPIUM安装与搭建Q&A
  9. Codeforces-8VC Venture Cup 2016-Elimination Round-626A.暴力 626B.水题 626C.二分
  10. C语言链表:逆序建立单链表
  11. docker常用操作备忘
  12. 转 MySQL 日期类型详解
  13. BZOJ3560 DZY Loves Math V 数论 快速幂
  14. Java面试知识点
  15. PAT 乙级 1061. 判断题(15)
  16. 在局域网内部实现远程web终端服务
  17. 记录一个错误,在bundle install时候出现 shoulda-mathcers bundle install fails with git error
  18. Pycharm(三)常用设置
  19. [BAT]批处理脚本双击可运行,但在定时计划任务中无法执行(当前工作路径不对导致的)
  20. canvas里调用getImageData的报security的问题

热门文章

  1. 洛谷P1447 - [NOI2010]能量采集
  2. 【容斥】HDU 4135 Co-prime
  3. VMware虚拟机CentOS7 - VMnet8网络配置及常见问题解决
  4. Hubtown
  5. 互不侵犯King(bzoj 1087)
  6. ElasticSearch聚合入门(续)
  7. Codevs 3111 CYD啃骨头
  8. HDU 5009 Paint Pearls(西安网络赛C题) dp+离散化+优化
  9. 标准C程序设计七---05
  10. [转发]Android 系统稳定性 - ANR(二)