Make UITextField Cursor Blink Programmatically
I want to make some of my UITextField's blue cursor start to blink programmatically, as if they were just pressed by the user.
I know this great post by Matt Gallagher on how to simulate touch events for test purposes, but it won't work for开发者_JAVA技巧 production purposes.
Anybody can help?
[theTextField becomeFirstResponder]
should do the job.
精彩评论