Fix refreshControl position

This commit is contained in:
Bob Sun 2017-09-24 22:53:00 -07:00
parent 70bf15b80c
commit 1d4939a85d

View file

@ -199,7 +199,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
tableView.contentInset = UIEdgeInsetsMake(56, 0, 0, 0) tableView.contentInset = UIEdgeInsetsMake(56, 0, 0, 0)
definesPresentationContext = true definesPresentationContext = true
view.addSubview(searchBarView) view.addSubview(searchBarView)
tableView.insertSubview(syncControl, at: 0) tableView.refreshControl = syncControl
SVProgressHUD.setDefaultMaskType(.black) SVProgressHUD.setDefaultMaskType(.black)
tableView.register(UINib(nibName: "PasswordWithFolderTableViewCell", bundle: nil), forCellReuseIdentifier: "passwordWithFolderTableViewCell") tableView.register(UINib(nibName: "PasswordWithFolderTableViewCell", bundle: nil), forCellReuseIdentifier: "passwordWithFolderTableViewCell")