I want to detect changing values in UITextField
. So I added this target to my text field.
[field addTarget:metrixUIViewControllerIn action:@selector(executeScriptOnTextFieldChange:) forControlEvents:UIControlEventEditingChanged];
But the problem is, this executeScriptOnTextFieldChange:
doesn't fire when I set the text programmatically. How to make it fire in both cases (user type the text and when programmatically set the text).