![](/img/trans.png)
[英]UISearchBar displaying a label when a search produces no results, but not hiding the label again when the x in the UISearchBar is clicked
[英]Search results label in UISearchbar
如何在 iPhone 上像 App Store 一樣設置搜索結果標簽?
或者像這樣:
您可以使用UISearchDisplayController
類或添加UISearchBar,將要使用的控制器設置為其委托,並實現必要的方法。
蘋果參考資料: https : //developer.apple.com/library/ios/documentation/uikit/reference/UISearchDisplayController_Class/Reference/Reference.html
我相信此鏈接會有所幫助。您可以找到有關它的教程。 http://www.raywenderlich.com/16873/how-to-add-search-into-a-table-view
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.