Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- searchController = UISearchController(searchResultsController: nil)
- searchController?.searchBar.delegate = self
- searchController?.dimsBackgroundDuringPresentation = true
- searchController?.searchResultsUpdater = self
- navigationItem.searchController = searchController
- var didPerformSearch: Bool = false
- if didPerformSearch == true {
- yourSearchBar.isHidden = true
- }else{
- yourSearchBar.isHidden = false
- }
Add Comment
Please, Sign In to add comment