我在UITableView中使用UISearchController,並在我的基本視圖控制器上使用相同的表視圖來顯示搜索結果(以未指定單獨的搜索結果控制器作爲searchController = UISearchController(searchResultsController: nil)
)。UISearchController與零searchResultsController
儘管將searchResultsController設置爲nil,但當搜索處於活動狀態時,空透明_UISearchControllerView
仍在我的視圖控制器上顯示。
有沒有辦法來防止這種情況,並保持我的視圖控制器上的視圖控制器hiearchy搜索頂部?
謝謝。
這只是一個視覺屬性,因爲我知道,不工作,因爲我想。你有沒有嘗試過,看到調試器,也許我錯過了什麼? – Onur