I have a UITextField and it must blink the cursor anyway, even its userInteractionEnabled property is set to NO. I don't want the UITextField to becomeFirstResponder and show the keyboard.
Now you may be asking:
1. If you want to hide the keyboard, why to show the cursor?
A: The problem is that I need to show the user the UITextField is being edited, with a different/custom keyboard.
2. So why don't you use the inputView property?
A: Because the keyboard in inputView comes up from bottom, and I want my custom keyboard in the center of the screen.
So let's go to the real question:
How can I show the cursor? Is there any property I can set? If not, how I would draw a cursor? Making a UIView that gets added and removed with alpha, or subclassing UITextField and overriding drawInRect?