Henson Fang Henson Fang -4 years ago 139
iOS Question

textfield fires EditingChanged three times?

This is when i input "input" and click the return button.

enter image description here

[_textField addTarget:self action:@selector(textFieldValueChanged:) forControlEvents:UIControlEventEditingChanged];

- (IBAction)textFieldValueChanged:(id)sender {

Answer Source
2017-03-24 11:30:38.519 objcDemo[19127:2070353] I
2017-03-24 11:30:38.665 objcDemo[19127:2070353] In
2017-03-24 11:30:38.826 objcDemo[19127:2070353] Inp
2017-03-24 11:30:39.033 objcDemo[19127:2070353] Inpu
2017-03-24 11:30:39.136 objcDemo[19127:2070353] Input

It's normal in my Mac OS 10.2.1 ,iOS 10.1 probably it's an apple bug.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download