我需要禁用鍵盤自動填充。我使用了以下代碼:
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 上的自動填充添加了新行為以及如何禁用它?
uj5u.com熱心網友回復:
這是可以幫助您的解決方案?? 禁用文本欄位拼寫檢查型別也使用自動更正型別
firstName.autocorrectionType = .no
firstName.spellCheckingType = .no
lastName.autocorrectionType = .no
lastName.spellCheckingType = .no
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/359016.html
