My code is
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
NSLog(@"%@",petTypeTextFeild.text);
return YES;
}
when i type ‘a’ nothing is printed
when i typenext letter ‘s’ ‘a’ is printed
I want full text.
Is there any other methode like textFinishChange?
Thank You.
Use the following: