How to set the custom border color of UIView programmatically?

后端 未结 10 486
情书的邮戳
情书的邮戳 2020-12-23 02:29

I am trying to set the custom border color of UIView programmatically in Swift.

10条回答
  •  北海茫月
    2020-12-23 03:23

    swift 3.0

    self.uiTextView.layer.borderWidth = 0.5
        self.txtItemShortDes.layer.borderColor = UIColor(red:205.0/255.0, green:205.0/255.0, blue:205.0/255.0, alpha: 1.0).cgColor
    

提交回复
热议问题