title: Using UISegmentedControl with UISearchController
body: <p>How do i use <code>SegmentedControl</code> with <code>UISearchController</code>? I need the <code>SegmentedControl</code> to be under the <code>SearchBar</code> when <code>SearchBar</code> is inactive and hide the segmented control when <code>SearchBar</code> is activated.</p>
  
  <p>I put SearchController.searchBar to the tableview header, so the <code>SegmentedControl</code> which i defined in storyboard is overlapped by <code>SearchBar</code>. When i tried to add <code>SegmentedControl</code> programmatically in viewDidLoad by calling tableView.tableHeaderView?.addSubview(customSecmentedControl), it overlapped the cells in tableView.</p>