如何为 iPhone 搜索键盘上的搜索按钮添加事件处理程序
如何为 iphone 应用程序的 obj c 中的搜索键盘上的搜索按钮添加事件处理程序,请提前感谢
how to add event handler for the search button on the search key pad in obj c for an iphone app, thanx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您使用的是
UISearchBar
,您应该为其分配一个委托对象。该委托应符合UISearchBarDelegate
协议,然后就可以实现:Assuming you're using a
UISearchBar
, you should assign it a delegate object. That delegate should conform toUISearchBarDelegate
protocol, and then you can implement: