开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜