ios 调整cell分割线左边空白

if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)])

    {

        [self.tableView setSeparatorInset:UIEdgeInsetsZero];

  }

    if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)])

{

        [self.tableView setLayoutMargins:UIEdgeInsetsZero];

    }

//    调整分割线左边空白(8.0)

    if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {

        [self.tableView setSeparatorInset:UIEdgeInsetsMake(0, 14, 0, 0)];

    }

    if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)]) {

        [self.tableView setLayoutMargins:UIEdgeInsetsMake(0, 14, 0, 0)];

    }

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1. 打印View所有子视图 po [[self view]recursiveDescription] 2. la...
    浩成哥哥阅读 4,183评论 0 0
  • 1、禁止手机睡眠[UIApplication sharedApplication].idleTimerDisabl...
    DingGa阅读 4,796评论 1 6
  • 1、打印view所有子视图 1、打开终端输入一下三条命令: touch ~/.lldbinit echo disp...
    凡哥阅读 3,968评论 3 14
  • pragma mark 折半查找 pragma mark 概念 pragma mark 代码(查找好像有点问题)
    liyuhong165阅读 3,188评论 0 0
  • 画的我有点累!!! 画材:肯特纸,辉柏嘉油性48色。 完成图! 过程图: 线稿 开始眼睛的上色 脸部 耳朵 身体
    木南_1982阅读 2,405评论 1 4