Skip to content

Instantly share code, notes, and snippets.

@zkkmin
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkkmin/d7c7ef1beb7ca47ad8aa to your computer and use it in GitHub Desktop.
Save zkkmin/d7c7ef1beb7ca47ad8aa to your computer and use it in GitHub Desktop.
// UISearchController Setup
searchController = UISearchController(searchResultsController: resultTableViewController)
searchController.searchResultsUpdater = self
searchController.searchBar.searchBarStyle = UISearchBarStyle.Minimal
searchController.hidesNavigationBarDuringPresentation = false
navigationItem.titleView = searchController.searchBar
definesPresentationContext = true
resultTableViewController.tableView.dataSource = self
resultTableViewController.tableView.delegate = self
searchController.dimsBackgroundDuringPresentation = false
searchController.delegate = self
searchController.searchBar.delegate = self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment