如何在UITextView上禁用键盘? [英] How to disable keyboard on a UITextView?

查看:150
本文介绍了如何在UITextView上禁用键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用了xib上的iPad文本视图。我写了一些文字。现在,当应用程序正在运行且用户正在阅读该文本时,如果他不小心触摸屏幕,则会出现键盘。我想禁用该键盘弹出。我该怎么做?

I have used a Text view in my app for iPad on xib. I wrote some text on it. Now while the app is running and the user is reading that text, if he accidentally touches the screen a keyboard appear. I want to disable that keyboard popping out. How should I do it?

推荐答案

您也可以通过取消选中属性检查器选项卡中的行为可编辑框,通过Interface Builder实现此目的。

You can also achieve this via Interface Builder by unchecking the Behavior Editable box in the Attributes Inspector tab.

这篇关于如何在UITextView上禁用键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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