[英]Unable to disable autofill on keyboard on iOS 15 swift. Xcode 13
我需要禁用鍵盤自動填充。 我使用了以下代碼:
firstName.autocorrectionType = .no
lastName.autocorrectionType = .no
firstName.textContentType = .none
lastName.textContentType = .none
在 iOS 14 和更早版本的自動填充上未顯示。 iOS 13.7 圖像.png 。
在 iOS 15 上顯示自動填充iOS 15 image.png 。
是否為 iOS 15 上的自動填充添加了新行為以及如何禁用它?
這是解決方案,它可以幫助您也使用 autocorrectionType 禁用文本字段 spellCheckingType
firstName.autocorrectionType = .no
firstName.spellCheckingType = .no
lastName.autocorrectionType = .no
lastName.spellCheckingType = .no
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.