Put the following segment in yours viewDidLoad, so you ask to UITableViewscroll and hide SearchBarat the beginning:
tableView.scrollToRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 0), atScrollPosition: UITableViewScrollPosition.Top, animated: false)
TableViewHeader searchController:
tableView.tableHeaderView = searchController.searchBar
:
, :
tableView.scrollToRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 0), atScrollPosition: UITableViewScrollPosition.Top, animated: false)
:
self.tableView.contentOffset = CGPointMake(0.0, 44.0)
!