From d190636fbde8fcc5132fe647404888c53c6005f4 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 3 Jul 2020 19:36:08 -0400 Subject: [PATCH] Fix Preferences button not appearing (again) --- Tusker/Screens/Profile/ProfileTableViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tusker/Screens/Profile/ProfileTableViewController.swift b/Tusker/Screens/Profile/ProfileTableViewController.swift index b8d84b8f..50e509a0 100644 --- a/Tusker/Screens/Profile/ProfileTableViewController.swift +++ b/Tusker/Screens/Profile/ProfileTableViewController.swift @@ -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