UITextField / UITextView - 如何将闪烁标记更改为其他颜色?

时间:2011-08-16 19:03:38

标签: iphone objective-c

  

可能重复:
  How to change the color of the cursor in the textfield?

当正在编辑UITextField或UITextView时,它会显示一条蓝色闪烁的行,用于输入文本的位置。如何将此颜色更改为其他颜色?

1 个答案:

答案 0 :(得分:3)

我认为目前无法改变光标的颜色。有一个使用私有API的解决方案(请按照以下链接),但可能会导致应用被Apple拒绝。

Change color of cursor in text field