分割线细线

    //下细线

    UIView *bottomClipView = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(ruleLabel.frame), CGRectGetWidth(_bottomBgView.frame), 0.5)];

    bottomClipView.backgroundColor = ZZColor(220, 220, 223);

    [_bottomBgView addSubview:bottomClipView]

  //延长tableView分割线

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

        [self.tableView setSeparatorInset:UIEdgeInsetsZero];

    }

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

        [self.tableView setLayoutMargins:UIEdgeInsetsZero];

    }

原文地址:https://www.cnblogs.com/OIMM/p/5093295.html