我如何在我的的UITextField巨大的自动校正解雇区? [英] How do I get around my UITextField's HUGE auto-correct dismissal area?

查看:150
本文介绍了我如何在我的的UITextField巨大的自动校正解雇区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的UITableView,每一行有一个文本字段或交换机作为其附件视图(有点像设置应用程序)。该文本框都设置有自动大写。但是,自动更正提示(您点击驳回提议的),似乎手指presses反应达65像素的实际文本框下方!

In my UITableView, each row has a text field or switch as its accessory view (a bit like the Settings app). The textFields are set with Auto-capitalisation ON. But the auto-correct prompt (the one you tap to dismiss the suggestion) seems to react to finger presses up to 65 px below the actual textField!

这意味着,例如,如果用户键入的东西在一个文本框,然后尝试preSS下面的行中的UISwitch(无pressing回报),而不是pressing开关,他们的第一个preSS驳回自动更正。对于用户,这既令人困惑(他们必须轻按开关两次)和恼人的(他们解雇文本字段的修正没有意义的)。

This means, for example, if a user types something in a textField, and then tries to press a UISwitch in the row below (without pressing return), instead of pressing the switch, their first press dismisses the autocorrect. For the user this is both confusing (they have to tap the switch twice) and annoying (they dismiss the text field's correction without meaning to).

有没有解决这个办法,而无需巨大的表行或禁用自动完成?

Is there any way around this without having gigantic table rows or disabling autocomplete?

推荐答案

也许你可以有1或2秒检查并自动辞职的文本框的定时器。

Maybe you could have a timer of 1 or 2 seconds that check and resign the textfield automatically.

这篇关于我如何在我的的UITextField巨大的自动校正解雇区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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