我想设置UITextField的borderColoriOS中8斯威夫特.我尝试使用此代码:
UITextField
borderColor
myTextField.layer.borderColor = UIColor( red: 0.5, green: 0.5, blue:0, alpha: 1.0 )
我收到了这个错误:
UIColor不能转换为CGColor
ios swift
ios ×1
swift ×1