hide search bar by default

This commit is contained in:
Bob Sun 2017-02-01 22:43:05 +08:00
parent de9aed4cbe
commit c08d73523c
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

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