UISearchBar - what is “search results button” for?

前端 未结 1 1819
孤街浪徒
孤街浪徒 2021-02-19 03:15

(Duplicate of this question, but I figured I could try again, since that one wasn\'t answered...)

The UISearchBar on the iPhone has an option showsSearchResultsButton. W

1条回答
  •  失恋的感觉
    2021-02-19 03:37

    It's simply to show search results when tapped.

    Where Apple uses this is in their iPad App Store application. If you go to the Categories tab you'll see various app categories. Search for an item, you'll get a list of results, and when you press "Done" you are shown the categories screen again. Your previous search term is still listed in the search field, but now the Search Results Button appears in the field. After tapping this, a UIPopOver is displayed, showing a text list of the results from your last search.

    0 讨论(0)
提交回复
热议问题