例如以下代码之类的简单操作对我来说无法自动填充电子邮件,例如,我也尝试使用电话号码,给定名称等。即使在强制使用autocorrectionType之后。
let textField = UITextField()
textField.textContentType = .emailAddress
textField.autocorrectionType = .yes
textField.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(textField)
NSLayoutConstraint.activate([
textField.centerYAnchor.constraint(equalTo: view.centerYAnchor),
textField.centerXAnchor.constraint(equalTo: view.centerXAnchor),
textField.widthAnchor.constraint(equalToConstant: 100),
textField.heightAnchor.constraint(equalToConstant: 50)
])
Swift 5,Xcode 10.2,iOS 12.2
答案 0 :(得分:0)
以这种方式尝试。输入iD := <s6_Canvas> [: upload.js]
iD := addComment(iD, cS) [: image.js]
s8 := base64_deCode(iD) [: base64.js]
MODIFY s8:
s8 := s8[0 - pos] + cS + s8[pos - len]
iD := base64_enCode(s8) [: base64.js]
RETURN iD
Where,
iD => Image Data (base64 string...each char represents 6 bit value)
s6_Canvas => Canvas.toDataURL() :: base_64 or 6_bit string
cS => Comment String (16 bit)
s8 => 8 bit hexadecimal string
后,您将获得建议。
UITextContentType.