don't hide search bar by default

This commit is contained in:
Bob Sun 2017-02-01 23:15:44 +08:00
parent cca1bf83e0
commit 2fd374fbdc
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -44,8 +44,7 @@ class PasswordsTableViewController: UITableViewController {
searchController.dimsBackgroundDuringPresentation = false searchController.dimsBackgroundDuringPresentation = false
definesPresentationContext = true definesPresentationContext = true
tableView.tableHeaderView = searchController.searchBar tableView.tableHeaderView = searchController.searchBar
tableView.setContentOffset(CGPoint(x: 0, y: 44), animated: false) // tableView.setContentOffset(CGPoint(x: 0, y: 44), animated: false)
} }
func filterContentForSearchText(searchText: String, scope: String = "All") { func filterContentForSearchText(searchText: String, scope: String = "All") {