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

2018-07-05  本文已影响0人  圣光啊那个敌人值得一战
    //去掉没有数据显示部分多余的分隔线
    tableview_bill.tableFooterView =  UIView.init(frame: CGRect.zero)
    
    //将分隔线offset设为零,即将分割线拉满屏幕
    tableview_bill.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0)

    //设置分隔线颜色
    tableview_bill.separatorColor = UIColor.line_grey
上一篇 下一篇

猜你喜欢

热点阅读