`

swift -> UIView 添加一边 边框

 
阅读更多

 

 

        let bd = CALayer();
        bd.frame = CGRect(x: 0, y: 0, width: 0.5, height: ht);
        bd.backgroundColor = UIColor.init(white: 0.8, alpha: 1).cgColor;
        btn.layer.addSublayer(bd);

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics