为iOS中的日语键盘禁用汉字自动完成功能(henkan)? [英] Disable the kanji auto-complete (henkan) for Japanese keyboards in iOS?

查看:264
本文介绍了为iOS中的日语键盘禁用汉字自动完成功能(henkan)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UITextField,并且已关闭常规的自动校正功能,但是我需要日语键盘才能显示键入时出现在键盘上方的日文汉字自动完成视图.我正在尝试测验用户,因此禁用此功能很重要.

I am using a UITextField and have turned off the normal auto correction features but I need Japanese keyboards to not show the kanji auto-complete views that appear above the keyboard when typing. I am trying to quiz the user and so it is important that this feature is disabled.

有什么想法吗?

推荐答案

答案可能很长,但是出于完成目的,您可以覆盖shouldChangeCharactersInRange方法并从该方法返回NO.

Probably this is a long time for the answer, however for the completion purpose, you can override shouldChangeCharactersInRange method and return NO from this method.

我不小心这样做了,并且我的自动完成已停止.看来我的问题是别人的解决方案:)

I had accidentally done this, and my auto-completion had stopped. Seems that my problem was a solution to someone else :)

这篇关于为iOS中的日语键盘禁用汉字自动完成功能(henkan)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆