Question:
In a view with multiple UITextField elements, textFieldDidChangeSelection will trigger for any editing done in any UITextField. Can we perform some action inside this function only when a certain UITextField is edited?Answer:
You just need to compare the textField to the one you want:===
not the equality operator ==
.If you have better answer, please add a comment about this, thank you!