这一定很琐碎,但我不明白你应该如何以编程的方式排除UISearchController?
请注意,它是新的UISearchController(2014年随iOS 8推出),而不是UISearchDisplayController.
到目前为止,这是我得到的
// Dismiss the search tableview
searchController.dismissViewControllerAnimated()
// Clear the Search bar text
searchController.active = false
但我仍然有取消按钮,无法摆脱它.