如何隐藏键盘一次UITextView成为iPhone SDK中的第一个响应者? [英] How to hide keyboard once UITextView becomes the first responder in iPhone SDK?

查看:117
本文介绍了如何隐藏键盘一次UITextView成为iPhone SDK中的第一个响应者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程序,当我点击UITextView键盘变得可见



我尝试在textDidEndOnExit事件使用resignFirstResponder但键盘不隐藏。 >

应该如何隐藏键盘?



请帮助和建议,
谢谢。 >

解决方案

这里有关于此主题的另一个主题:
如何在iPhone上触摸空白区域时隐藏键盘



我认为这可以帮助你。


In my iPhone App when I click on UITextView keyboard becomes visible

I try to use resignFirstResponder on "textDidEndOnExit" event but the keyboard does not hide.

What should be done to hide the keyboard?

please Help and Suggest, Thanks.

解决方案

Here another thread about this topic: how to hide the keyboard when empty area is touched on iphone

i think this can help you.

这篇关于如何隐藏键盘一次UITextView成为iPhone SDK中的第一个响应者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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