简体   繁体   English

iOS UISearchBar在第一次点击时不显示键盘

[英]iOS UISearchBar not showing keyboard on first tap

I have a view controller with a UISearchBar at the top and it takes two or three taps before the keyboard shows up. 我有一个顶部带有UISearchBar的视图控制器,在显示键盘之前需要进行两次或三次轻按。 It does this on simulator and on device. 它在模拟器和设备上执行此操作。 Anyone knows what is causing this? 有人知道是什么原因造成的吗? I sometimes have this issue with UITextField too? 有时候我也有UITextField这个问题吗?

Thanks, 谢谢,

I'm developing for iPad and using Xcode 4.5 and deploying for iOS 5.0 and + 我正在为iPad开发并使用Xcode 4.5,并为iOS 5.0和+进行部署

不确定要搜索的内容是什么,但是如果它在UITableView中,则可以使用UISearchDisplayController- 这里的示例-使处理表搜索变得容易得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM