Created
November 27, 2015 12:21
-
-
Save samuelbeek/39cac19a659d64c29825 to your computer and use it in GitHub Desktop.
Search Bars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.resultSearchController = ({ | |
let controller = UISearchController(searchResultsController: nil) | |
controller.searchResultsUpdater = self | |
controller.dimsBackgroundDuringPresentation = false | |
controller.hidesNavigationBarDuringPresentation = false | |
controller.searchBar.barStyle = .Black | |
controller.searchBar.sizeToFit() | |
self.tableView.tableHeaderView = controller.searchBar | |
return controller | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment