如何更改我的光标颜色UITextField?
我正在尝试根据用户的偏好设置UITextView的光标颜色.他们用按钮选择他们想要的颜色.
默认情况下,textview的光标颜色为白色.当用户按下按钮时,它可能会变为绿色:
[_textView setTintColor:[UIColor greenColor]];
[_textView setTextColor:[UIColor greenColor]];
Run Code Online (Sandbox Code Playgroud)
我确信这个方法调用是有效的,因为textview的文本改变颜色,而不是光标...