设置UILabel一边的边框
2019-04-26 本文已影响0人
pomelo_西
let bd = CALayer()
bd.frame = CGRect(x: (Screen.width - 340) / 2, y: myLabel.vHeight, width: 340, height: 0.5)
bd.backgroundColor = Color.boderColor.cgColor
myLabel.layer.addSublayer(bd)
let bd = CALayer()
bd.frame = CGRect(x: (Screen.width - 340) / 2, y: myLabel.vHeight, width: 340, height: 0.5)
bd.backgroundColor = Color.boderColor.cgColor
myLabel.layer.addSublayer(bd)