设置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)
上一篇 下一篇

猜你喜欢

热点阅读