// // NavigationMenuController.swift // pocloud // // Created by Patrick McDonagh on 6/6/18. // Copyright © 2018 patrickjmcd. All rights reserved. // import UIKit class NavigationMenuController: UITableViewController { let appAuth = AppAuth() override func viewDidLoad() { super.viewDidLoad() self.tableView.estimatedRowHeight = 44 self.tableView.rowHeight = UITableViewAutomaticDimension } @IBAction func logOutButtonPressed(_ sender: Any) { print("SHOULD LOG OUT") // appAuth.logOut() self.navigationController!.popToRootViewController(animated: true) // self.dismiss(animated: false) { // let mainVC = (UIApplication.shared.delegate!.window!?.rootViewController!)! // if let navController = mainVC.navigationController { // navController.popToRootViewController(animated: true) // } else { // print("NO NAV CONTROLLER") // } // } } }