美文网首页
设置UILabel一边的边框

设置UILabel一边的边框

作者: pomelo_西 | 来源:发表于2019-04-26 18:28 被阅读0次
    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