Fix Preferences button not appearing (again)

This commit is contained in:
Shadowfacts 2020-07-03 19:36:08 -04:00
parent 4e4701ead5
commit d190636fbd
1 changed files with 4 additions and 4 deletions

View File

@ -31,10 +31,6 @@ class ProfileTableViewController: EnhancedTableViewController {
self.accountID = accountID
super.init(style: .plain)
self.refreshControl = UIRefreshControl()
refreshControl!.addTarget(self, action: #selector(refreshStatuses(_:)), for: .valueChanged)
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .compose, target: self, action: #selector(composePressed(_:)))
}
required init?(coder aDecoder: NSCoder) {
@ -51,6 +47,10 @@ class ProfileTableViewController: EnhancedTableViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.refreshControl = UIRefreshControl()
refreshControl!.addTarget(self, action: #selector(refreshStatuses(_:)), for: .valueChanged)
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .compose, target: self, action: #selector(composePressed(_:)))
tableView.rowHeight = UITableView.automaticDimension
tableView.estimatedRowHeight = 140