chronotruck / FlagPhoneNumber

A formatted phone number UITextField with country flag picker.
Apache License 2.0
437 stars 317 forks source link

Ability to use library for multiple textfields on a page. #203

Open tesddev opened 1 year ago

tesddev commented 1 year ago

Description I've been trying to set active textfield when flag button is pressed, all to no avail. Since shouldBeginEditing delegate is not accessed on pressing of button, there has to be another way of getting the active textfield, so as to know which textfield's flag would be set among many others on the page.

Solution There has to be a way of getting or setting the activetextfield on pressing flag button, so as to know which textfield's flag would be set, among many others on the same page.