美文网首页
swift4.0 ios tableView去掉没有数据部分多余

swift4.0 ios tableView去掉没有数据部分多余

作者: 圣光啊那个敌人值得一战 | 来源:发表于2018-07-05 09:31 被阅读0次
    //去掉没有数据显示部分多余的分隔线
    tableview_bill.tableFooterView =  UIView.init(frame: CGRect.zero)
    
    //将分隔线offset设为零,即将分割线拉满屏幕
    tableview_bill.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0)

    //设置分隔线颜色
    tableview_bill.separatorColor = UIColor.line_grey

相关文章

网友评论

      本文标题:swift4.0 ios tableView去掉没有数据部分多余

      本文链接:https://www.haomeiwen.com/subject/qcpuuftx.html