iphone - UISearchBar上的搜索按钮 [英] iphone - Search button on a UISearchBar
问题描述
我有使用UISearchBar的搜索功能即时发生,所以我认为用完成替换键盘上的搜索按钮会更明显。
I have a search functionality using UISearchBar that occurs on-the-fly, so I think it would be more obvious to replace that "Search" button on the keyboard with "Done".
有没有办法做到这一点?
Is there a way to do that?
谢谢
推荐答案
您可以更改UISearchBar对象的 keyboardType
属性。但是,没有办法直接更改 returnKeyType
。您可以过滤并手动更改它。查看UISearchBar的文档,看看是否可以找到 returnKeyType
,因为这正是您所需要的。
You can change the keyboardType
property of your UISearchBar object. However, there is not a way to change the returnKeyType
directly. You may be able to filter down and change it manually. Check the documentation for UISearchBar and see if you can find returnKeyType
as that is what you are looking for.
这篇关于iphone - UISearchBar上的搜索按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!