Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 20th, 2018 60 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top