Post

Replies

Boosts

Views

Activity

Disable AutoFill option in UITextField or have control over the text which is being pasted using that option.
I have form fields in an app, I have some validations to perform like phone number should only have digits and not alphabets, however when user uses AutoFill option doing long press on textfield they have option to choose Contacts and they can tap on name and it will paste alphabets in my Phone number field, that behavior I don't want as my validations will not be fulfilled. There are no callbacks to detect and prevent that text from being pasted. In shouldChangeCharactersIn delegate method even if I return false for that paste event it ignores that and forcefully it gets pasted. Please help how to tackle such scenarios to perform above mentioned validations. Thanks
2
2
1.6k
Mar ’24
Wrong MNC code is populated for the Yes Carrier in Malaysia.
I am using CTTelephonyNetworkInfo api to fetch MNC, MCC and Carrier name. MCC code is being populated as expected, however MNC and Carrier name is being wrongly populated. I have concern specific to Yes carrier from Malaysia, whose MNC code is 152 which is wrongly populated as 15 and expected carrier name is Yes however Apple api is returning it is a 'Carrier' which is misleading. May we know what could be the reason for this? Thanks.
4
0
1.7k
Dec ’22