Cursor not showing up in UITextView

SeanT picture SeanT · Jan 6, 2014 · Viewed 31.3k times · Source

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?...

Answer

lehn0058 picture lehn0058 · Jan 6, 2014

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.