是否可以使iPhone键盘不可见/将其删除而无需退出第一响应者? [英] Is it possible to make the iPhone keyboard invisible / remove it without resigning first responder?

查看:68
本文介绍了是否可以使iPhone键盘不可见/将其删除而无需退出第一响应者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种显示自己的输入视图(UITableView)的方法,以比在键入文本时更快地在UITextView中输入某些关键字,并且还能够以正常方式在此文本视图中输入内容.我的解决方案有一个按钮,该按钮可使键盘消失,从而露出其下方的表格视图.

I am looking for a way to show my own input view (a UITableView) to enter certain keywords in a UITextView faster than typing them, and also be able to type into this text view the normal way. My solution has a button that causes the keyboard to disappear, revealing the table view underneath it.

问题是我不知道如何在不辞退第一响应者和丢失光标的情况下使键盘消失.有人做过吗?

Problem is I can't figure out how to make the keyboard go away without resigning first responder, and losing the cursor. Has anyone accomplished this before?

感谢您的帮助.

推荐答案

不是

据我所知,没有办法做到这一点,并且我已经进行了广泛的搜索.非常令人沮丧的是,选择和光标仅限于键盘.

As far as I know there is no way to do this, and I have searched extensively. Very frustrating that selection and the cursor are restricted to the keyboard.

我可能是错的.投票?有建议吗?

I could be wrong though. Votes? Suggestions?

这篇关于是否可以使iPhone键盘不可见/将其删除而无需退出第一响应者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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