One text field only takes alphabet characters and the other one is alphanumeric. I have defined shouldChangeCharactersInRange in my ViewController for one of them. Now I don’t know where I’m supposed to define the logic for other uitextfield.
Can someone help me understand how this should work?
You have a couple options. If you have created iVars for your text fields, checking which one is calling
shouldChangeCharactersInRangeis as simple as==. Below I’ve also shown that another option would be to assign tags to the text fields and check the tag of the sending text field.