本机 UITextField 安全文本输入强制使用英语(美国)键盘

2023-01-30移动开发问题
3

本文介绍了本机 UITextField 安全文本输入强制使用英语(美国)键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我有一个非常简单的登录页面(登录名 + 密码).

I have a very simple login page (login + password).

我的用户是法国人,所以他们的键盘是法语 (azerty).

My users are french, so their keyboard are French (azerty).

从 iOS 12 开始,当他们单击受保护的密码文本字段时,即使他们的设备上没有安装此键盘,键盘也会切换为英语 (qwerty).此外,如果他们没有安装此键盘,他们将无法切换回他们的键盘.

Since iOS 12, when they click on the password textfield, which is secured, the keyboard switches to English (qwerty), even if they do not have this keyboard installed on their devices. Moreover, if they do not have this keyboard installed, they can't switch back to their keyboard.

我发现如果我停用安全文本输入,问题不会出现.

I found out that if I deactivate Secure Text Entry, the problem does not show up.

我还尝试以编程方式设置 isSecureTextEntry,但出现了错误.

I also tried to set isSecureTextEntry programmatically, and the bug shows up.

我正在添加两个屏幕截图,每个文本字段一个.

I am adding two screenshots, one for each text field.

非常感谢您的宝贵时间帮助.

Thank you a lot for your time & help.

推荐答案

这确实是一个 iOS 错误 => 在 iOS 12.1 中更正

This was truly an iOS bug => corrected in iOS 12.1

这篇关于本机 UITextField 安全文本输入强制使用英语(美国)键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

[ios.cocos2d+box2d]如何禁用自动旋转?
[ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)...
2024-08-12 移动开发问题
7

cocos2D iPhone中的UItextfield文本对齐问题
UItextfield text alignment issue in cocos2D iPhone(cocos2D iPhone中的UItextfield文本对齐问题)...
2024-08-12 移动开发问题
7

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9