Can you catch TextField events when a Touch happens? So far I didn’t see the Touch event get registered to TextField. For example,
* (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [event allTouches] anyObject;
if (touch view == TextFieldView) {
do somthing.....
}
This a dummy code what I want to implement is I want a method that get fired when user touches the text field for some period.
If yes than how???
Enlighten me on this.
Thnx in advance.
I just tested this by writing a subclass of UITextField subclass that captures touches.
It easily captures touches and shows the text field as the view of the touch.