关闭iphone键盘 [英] Dismiss iphone keyboard

查看:103
本文介绍了关闭iphone键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我可以通过在我的视图和相应的按钮上放置一个工具栏来可视化地重现它,

解决方案

您是否尝试过:

  [viewReceivingKeys resignFirstResponder]; 

其中 viewReceivingKeys 文本输入?


I am trying to recreate something similar to the popup keyboard used in safari.

I am able to visually reproduce it by placeing a toolbar over my view and the appropriate buttons, however i cant figure out any way to dismiss the keyboard once the user has touched the done button.

解决方案

Have you tried:

[viewReceivingKeys resignFirstResponder];

where viewReceivingKeys is the UIView that is receiving the text input?

这篇关于关闭iphone键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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