我正在尝试制作一个漂亮的textField,但它没有用。所以我的问题是,当我开始编辑文本字段时,我需要将边框颜色更改为另一种颜色,但是当它发生时,我的自定义边框将变为默认矩形。我想要的只是改变底部边框的颜色。functextFieldDidBeginEditing(_textField:UITextField){nameField.borderStyle=UITextBorderStyle.nonenameField.layer.borderWidth=2.0nameField.layer.borderColor=UIColor.red.cgColornameField.layer.m