I have a requirement to implement a custom keyboard for a Cocoa Touch data entry screen containing multiple UITextFields. I built a keyboard and it works, but now I need to figure out how to implement the blinking cursor. (When you turn off the built-in keyboard of UITextField, you will also lose the cursor). In googling around, I saw a few mentions about using CALayer animations to do this. However, I have not yet found a simple example of how I can implement this. Since UITextField inherits from UIView, I was hoping I could use text fields as the host level. The animated part of blinking is not something that bothers me, it's just setting it up. Any tips or pointers to other sites containing a simple tutorial? (everything that I found was focused on multi-layer games and games,not based on the main view / text field).
source
share