I am writing validation for my textfield, I found something interesting that whether I can check how many digits I am typing into the textfield at real time. My text field i
[textField addTarget:self action:@selector(checkTextField) forControlEvents:UIControlEventEditingChanged];
Try it!