开发者

UITextField inside UIScrollView - I want to detect tap when it's focused

As topic's title says I want to do something when user touches UITextField and do something else when he will do it agai开发者_Python百科n. I noticed that there's no UITextFieldDelegate method that is giving this kind of information. Anyone could help me with that?

To make it sure - I don't want to recognize double tap on UITextField but getting notification always when user touched UITextField to do something on second click.

Thanks!


If you want to use your own special logic in UITextField it would be easier to use custom class implementing UIKeyInput protocol (see: http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIKeyInput_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UIKeyInput)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜