Guest User

Untitled

a guest
Aug 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class FirstViewController: UIViewController {
  2.  
  3. override func viewDidLoad() {
  4. super.viewDidLoad()
  5. // Do any additional setup after loading the view, typically from a nib.
  6. }
  7.  
  8. @IBAction func toDetail(_ sender: Any) {
  9. let controller = DetailViewController()
  10. controller.hidesBottomBarWhenPushed = true
  11. navigationController?.pushViewController(controller, animated: true)
  12. }
  13.  
  14. }
  15.  
  16. class DetailViewController: UIViewController {
  17.  
  18. override func viewDidLoad() {
  19. super.viewDidLoad()
  20.  
  21. // Do any additional setup after loading the view.
  22. view.backgroundColor = .red
  23. }
  24.  
  25. }
Add Comment
Please, Sign In to add comment