简体   繁体   English

UITextField 验证码无响应

[英]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!!我有一个文本字段,我在我的应用程序中使用它来输入短信验证码,我做了所有需要让它自动捕获验证码,但它没有! 在此处输入图像描述

I did not use any codes for this any advices?我没有为此使用任何代码,有什么建议吗?

Set the textContentType property to .oneTimeCode .textContentType属性设置为.oneTimeCode Example例子

myTextField.textContentType = .oneTimeCode

Enabling Password AutoFill on a Text Input View 在文本输入视图上启用密码自动填充

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM