ghr*_*rix 0 one-time-password ios swift
我想在我的文本字段中显示 OTP 代码,我在 google 中搜索并获得以下代码。
在我的应用程序中我使用 IQkeyboard 管理器
但 OTP 自动填充对我不起作用。
@IBOutlet weak var otp: CustomTextField!
if #available(iOS 12.0, *) {
otp.textContentType = .oneTimeCode
}
Run Code Online (Sandbox Code Playgroud)
我按照以下方式收到消息。
Your ***** verification code is :969514
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4483 次 |
| 最近记录: |