// // 6_SideChoiceViewController.swift // Guibe // // Created by Max Hunt on 28/05/2019. // Copyright © 2019 8. All rights reserved. // import UIKit class S6deChoiceViewController: UIViewController { let defaults = UserDefaults.standard @IBAction func topBigPressed(_ sender: Any) { defaults.set(1, forKey: "bigSide") let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "screen7") as! R7adyViewController nextViewController.modalTransitionStyle = .crossDissolve self.present(nextViewController, animated: true, completion: nil) } @IBAction func bottomBigPressed(_ sender: Any) { defaults.set(2, forKey: "bigSide") let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "screen7") as! R7adyViewController nextViewController.modalTransitionStyle = .crossDissolve self.present(nextViewController, animated: true, completion: nil) } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }