开发者

Make UITextField Cursor Blink Programmatically

开发者 https://www.devze.com 2023-03-31 17:18 出处:网络
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 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

精彩评论

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