// // SecondViewController.swift // NavigationStackDemo // // Created by Alex K. on 29/02/16. // Copyright © 2016 Alex K. All rights reserved. // import UIKit class SecondViewController: UITableViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // if let navigationController = navigationController { //// navigationController.navigationBar.barTintColor = UIColor(red:0.61, green:0.86, blue:0.87, alpha:1) //// tableView.contentOffset = CGPoint(x: 0, y: -44) //// navigationController.navigationBar.translucent = true // } } @IBAction func backHandler(_: AnyObject) { _ = navigationController?.popViewController(animated: true) } override func tableView(_: UITableView, didSelectRowAt _: IndexPath) { performSegue(withIdentifier: "push", sender: nil) } }