【发布时间】:2021-12-28 11:30:20
【问题描述】:
我需要禁用键盘自动填充。我使用了以下代码:
firstName.autocorrectionType = .no
lastName.autocorrectionType = .no
firstName.textContentType = .none
lastName.textContentType = .none
在 iOS 14 和更早版本上不显示自动填充。 iOS 13.7 image.png.
在 iOS 15 上显示自动填充 iOS 15 image.png.
是否在 iOS 15 上为自动填充添加了新行为以及如何禁用它?
【问题讨论】:
标签: ios swift iphone xcode macos