title: Locking UISearchBar to top of a TableView
body: <p>I am new to iOS development and have been trying to find a way to lock a UISearchBar to the top of a TableView. When I add one using the Storyboard, it scrolls with the table. I need it to be fixed at the top so that when a search term is input, it retrieves some data and displays them in the table cells.</p>
  
  <p>I have researched this for hours and although there appears to be many questions and answers on this topic, I can't find one that works for me. I tried adding a TableView (and a cell) to the bottom part of a UIViewController and a View with a UISearchbar at the top. But when I assign my subclass of UITableViewController to this, I get "'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "vAF-gB-z7z-view-IYZ-TB-71E" nib but didn't get a UITableView.'</p>
  
  <p>If I set it to a UIViewController it doesn't crash, but now I don't have control over my table.</p>
  
  <p>Can anyone help me to make this work?</p>