0
代碼呈現呈現SearchController:UISearch酒吧提示與狀態欄重疊而作爲UISearchController
searchController = UISearchController(searchResultsController:viewcontroller)
storageLocation.tableView.tableHeaderView = searchController.searchBar
searchController.dimsBackgroundDuringPresentation = true
searchController.hidesNavigationBarDuringPresentation = true
searchController.searchBar.prompt = "Some random text"
self.definesPresentationContext = true
searchController.searchBar.backgroundColor = .white
self.present(searchController, animated: true, completion: nil)