diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard index 023f0d3..1c2e24d 100644 --- a/pass/Base.lproj/Main.storyboard +++ b/pass/Base.lproj/Main.storyboard @@ -23,11 +23,11 @@ - + - + @@ -79,14 +79,14 @@ - + - + - + @@ -99,14 +99,14 @@ - + - + - + @@ -123,21 +123,21 @@ - + - + - + - + @@ -181,7 +181,7 @@ - + @@ -210,7 +210,7 @@ - + @@ -239,7 +239,7 @@ - + @@ -272,18 +272,18 @@ - + - + - + @@ -344,11 +344,11 @@ - + - + @@ -364,11 +364,11 @@ - + - + @@ -413,7 +413,7 @@ - + @@ -442,7 +442,7 @@ - + @@ -623,7 +623,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -681,7 +681,7 @@ - + diff --git a/pass/PasswordsTableViewController.swift b/pass/PasswordsTableViewController.swift index e25067a..31650e5 100644 --- a/pass/PasswordsTableViewController.swift +++ b/pass/PasswordsTableViewController.swift @@ -32,6 +32,7 @@ class PasswordsTableViewController: UITableViewController { } print("pull success") self.passwordEntities = PasswordStore.shared.fetchPasswordEntityCoreData() + self.generateSections(item: self.passwordEntities!) self.tableView.reloadData() } } @@ -44,9 +45,9 @@ class PasswordsTableViewController: UITableViewController { searchController.searchResultsUpdater = self searchController.dimsBackgroundDuringPresentation = false definesPresentationContext = true - tableView.tableHeaderView = searchController.searchBar // tableView.setContentOffset(CGPoint(x: 0, y: 44), animated: false) generateSections(item: passwordEntities!) + tableView.tableHeaderView = searchController.searchBar } override func numberOfSections(in tableView: UITableView) -> Int {