UISearchDisplayController
is a convenience controller for displaying a results table and managing the search bar. If you have code already that manages the bar and displays search results, you do not need a UISearchDisplayController
. Also, the search display controller will not help you with what you need (statis search bar).
What you want to achieve is possible with a search bar alone. What you want to do is have it as a subview to the view controller's view rather than the table view. That's somewhat difficult when you have a UITableViewController
because the view is the table view. The simplest solution is to move to a UIViewController
with a UIView
base view, and a tableview as a subview of that view, as well as the static search bar. Now the bar will stay positioned as you need, with the table view below it.