How do I customize a UITableview right, top and bottom border?

前端 未结 3 1061
逝去的感伤
逝去的感伤 2020-12-25 15:29

How can I set right, left, top and bottom border with color on UITableview in swift?

Thanks,

3条回答
  •  执念已碎
    2020-12-25 15:40

    if you want to give the border to tableview with color use below code for swift 3 :

    yourTableView.layer.borderColor = UIColor.gray.cgColor
    yourTableView.layer.borderWidth = 1.0
    

提交回复
热议问题