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)
本文标题:设置UILabel一边的边框
本文链接:https://www.haomeiwen.com/subject/wewqnqtx.html
网友评论