重现(仅适用于<= 8的iPhone设备错误,适用于iPhone X *设备正常):
@IBAction func onSearchBarItemClicked(_ sender: UIBarButtonItem) {
present(searchController, animated: true, completion: nil)
}
现在它位于状态栏下方,并且与底部内容重叠
我该如何解决?
UISearchController:
searchController = UISearchController(searchResultsController: nil)
searchController.hidesNavigationBarDuringPresentation = false
searchController.dimsBackgroundDuringPresentation = false
searchController.searchBar.keyboardType = UIKeyboardType.asciiCapable
searchController.searchBar.delegate = self
更新