Files
POCloud-iOS/pocloud/Controller/NavigationMenuController.swift
2018-06-11 10:21:03 -05:00

41 lines
1.0 KiB
Swift

//
// 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")
// }
// }
}
}