Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
186 views
in Technique[技术] by (71.8m points)

ios - UITextField not responding for verification codes

I have a text field which I use in my app to enter verification codes from SMS, I did all the required to make it capture the verification codes automatically but it doesn't!! enter image description here

I did not use any codes for this any advices ?

question from:https://stackoverflow.com/questions/66045449/uitextfield-not-responding-for-verification-codes

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Set the textContentType property to .oneTimeCode. Example

myTextField.textContentType = .oneTimeCode

Enabling Password AutoFill on a Text Input View


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...