button.layer.borderColor = UIColor.whiteColor().CGColor;
button.layer.borderWidth= 2;
button.layer.cornerRadius= 16;
inputTextView.layer.borderColor = UIColor(red: 60/255,green: 40/255,blue: 129/255,alpha: 1).CGColor;
inputTextView.layer.borderWidth = 1;
inputTextView.layer.cornerRadius = 16;
原文链接:https://www.f2er.com/swift/326142.html