UITextView当我们在textfield和textview中输入或编辑时,如何以编程方式设置uitextfield和边框颜色.
我使用了这段代码,但没有更改边框颜色UITextView.
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
textField.layer.borderColor=[[UIColor cyanColor] CGColor];
}
Run Code Online (Sandbox Code Playgroud)