默认情况下,UITextField的浅灰色作为其边框颜色。 我想设置我的UITextView具有与UITextField相同的边框颜色。如何将UITextView的边框设置为与UITextField的边框颜色相同
我想:
myTextView.layer.borderColor = UIColor.lightGrayColor().CGColor
or
myTextView.layer.borderColor = UIColor.lightTextColor().CGColor
or
myTextView.layer.borderColor = myTextField.layer.borderColor
他们仍然有多达有不同的颜色。 你能告诉我如何看到UITextView边框来匹配UITextField颜色吗?
谢谢。
[加边框的UITextView(http://stackoverflow.com/questions/2647164/bordered-uitextview) – 2015-11-19 20:14:01
的可能重复我想设置边框颜色底线。怎么做? – 2016-08-01 06:01:45