光标未显示在UITextView中 [英] Cursor not showing up in UITextView
问题描述
有人能想到闪烁光标不会出现在 UITextView
中的原因吗?我有一个自定义控件,它只是 UIView
的子类,它有一个 UITextView
,但是光标没有它会在焦点出现时出现。键盘出现,文字在你输入时显示,但没有光标,我无法弄清楚原因。
Can anyone think of a reason that the blinking cursor would not show up in a UITextView
? I have a custom control that is just a subclass of UIView
and it has a UITextView
in it, but the cursor doesn't appear when it gets focus. The keyboard appears, and the text appears as you type, but there is no cursor, and I can't figure out why.
有什么想法吗?...
Any thoughts?...
推荐答案
您可能已更改自定义UITextView中的色调颜色。如果色调颜色与背景颜色(通常为白色)相同,则它将显示为不可见。
You may have changed the tint color in your custom UITextView. If the tint color is the same as the background color (normally white), then it will appear invisible.
这篇关于光标未显示在UITextView中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!