简体   繁体   中英

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. It does this on simulator and on device. Anyone knows what is causing this? I sometimes have this issue with UITextField too?

Thanks,

I'm developing for iPad and using Xcode 4.5 and deploying for iOS 5.0 and +

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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