Saturday, March 2, 2024
HomeiOS Developmentios - NOT PASSWORD AUTOFILL. Disable AutoFill choice in UITextField or have...

ios – NOT PASSWORD AUTOFILL. Disable AutoFill choice in UITextField or have management over the textual content which is being pasted utilizing that choice like Contacts


I’ve kind fields in an app, I’ve some validations to carry out like telephone quantity ought to solely have digits and never alphabets, nonetheless when consumer makes use of AutoFill choice doing lengthy press on textfield they’ve choice to decide on Contacts they usually can faucet on title and it’ll paste alphabets in my Cellphone quantity subject, that conduct I do not need as my validations won’t be fulfilled. There are not any callbacks to detect and forestall that textual content from being pasted.

In shouldChangeCharactersIn delegate methodology even when I return false for that paste occasion it ignores that and forcefully it will get pasted.

Please assist the right way to deal with such situations to carry out above talked about validations.

Thanks



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments