Hi,
Want to invoke an action when a text field (UITextField) is clicked using Objective C? Use the following.
[myTextField addTarget:self action:@selector(textFieldTouched:) forControlEvents:UIControlEventTouchDown]; - (void) textFieldTouched:(id)sender { //Here goes your actions on TextField Clicked }
🙂