小编El-*_*tos的帖子

将PasswordField设置为secureTextEntry给我一个奇怪的行为

我有一个passwordField,我将其设置isSecureTextEntry为true,用于隐藏字符.但是,当我点击这个时,passwordField这告诉我这个错误:

[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: "myapp" due to error: iCloud Keychain is disabled
Run Code Online (Sandbox Code Playgroud)

键盘自动传递到一个qwerty的azerty ...

如果我删除passwordField.isSecureTextEntry = true问题消失但角色没有隐藏...

我告诉你我的代码:

passwordField.borderStyle = UITextField.BorderStyle.none
passwordField.font = UIFont(name: "Avenir-Heavy", size: 13)
passwordField.autocorrectionType = UITextAutocorrectionType.no
passwordField.clearButtonMode = UITextField.ViewMode.whileEditing
passwordField.keyboardType = UIKeyboardType.default
passwordField.returnKeyType = UIReturnKeyType.done
passwordField.contentVerticalAlignment = UIControl.ContentVerticalAlignment.bottom
passwordField.isSecureTextEntry = true
Run Code Online (Sandbox Code Playgroud)

我测试了这个答案,但没有任何变化

如何在没有iCloud Keychain和没有更改键盘的情况下隐藏我的textField的字符到qwerty?

我看了所有其他主题,但没有比我的问题...

ios swift

14
推荐指数
2
解决办法
5285
查看次数

找不到ntpdate命令?MacOS MOJAVE

你好我有一个bash脚本谁更新我的mac的时间,但自从更新Majove后找不到命令:

ntpdate -u time.apple.com
Run Code Online (Sandbox Code Playgroud)

回报:

ntpdate: command not found
Run Code Online (Sandbox Code Playgroud)

哪里出错了?

谢谢你的回复

macos bash macos-mojave

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

bash ×1

ios ×1

macos ×1

macos-mojave ×1

swift ×1