【发布时间】:2015-03-18 21:55:55
【问题描述】:
我有 UITextView,我想给它设置一个新的自定义颜色,像这样
var instaColor = UIColor(red: 51, green: 92, blue: 131, alpha: 1).CGColor
textView.layer.borderWidth = 1
textView.layer.cornerRadius = 20
textView.layer.borderColor = instaColor
但它的颜色是白色或根本不出现,这是怎么回事?这个颜色应该是深蓝色+绿色
【问题讨论】:
标签: ios swift uitextview uicolor