I m using -(void)textFieldDidBeginEditing:(UITextField *)sender this function in my application. this is not called when i select the textfield.
here’s the code…
-(void)textFieldDidBeginEditing:(UITextField *)sender{
if([sender isEqual:txtName])//txtName is the IBOutlet of the UITextField
{
NSLog(@"Name");
}
else{
NSLog(@"NO_Name");
}
}
Did you set delegate of UITextField’s instance to current view controller like this:
textField.delegate = self;(self means the instance where callback textFieldDidBeginEditing is overridden)