lee*_*lee 14 ios swift ios12 xcode10
我观看了这个视频在WWV 2018年的Cocoa Touch中的新功能,并看到:
如何显示此信息?
JAL*_*JAL 20
查看WWDC 2018会话204 - 自动强密码和安全代码自动填充.
您将需要使用UITextField
for entry和系统键盘(无自定义控件)并将其设置textContentType
为.oneTimeCode
(iOS 12中的新增功能).
let securityCodeTextField = UITextField()
securityCodeTextField.textContentType = .oneTimeCode
Run Code Online (Sandbox Code Playgroud)
操作系统将使用此UITextContentType
设置自动检测消息中的验证码.
对于那些正在搜索如何在HTML 中执行此操作的人:需要autocomplete="one-time-code"
为您的输入字段添加。
<input id="single-factor-code-text-field" autocomplete="one-time-code"/>
Run Code Online (Sandbox Code Playgroud)
(来自苹果文档)
归档时间: |
|
查看次数: |
7062 次 |
最近记录: |