Referred here and here. No answer in first link. In the second link, though the answer is not accepted, but the link to apple developer forum gives error.
Before i
Per your comments, your UISearchController
's UISearchBar
has been assigned to your UITableView
's tableHeaderView
. In iOS 11, you should instead be assigning your UISearchController
to the searchController
property of your view's navigationItem
. You no longer need to assign the UISearchBar
anywhere. See Apple's documentation on this new property.