// // 6_SideChoiceViewController.swift // Guibe // // Created by Max Hunt on 28/05/2019. // Copyright © 2019 8. All rights reserved. // import UIKit class S6deChoiceViewController: UIViewController { @IBOutlet weak var bTtn: UIButton! @IBOutlet weak var sBtn: UIButton! let defaults = UserDefaults.standard @IBAction func topBigPressed(_ sender: Any) { defaults.set(1, forKey: "bigSide") let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "screen6_5") as! GameLearnViewController 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: "screen6_5") as! GameLearnViewController nextViewController.modalTransitionStyle = .crossDissolve self.present(nextViewController, animated: true, completion: nil) } override func viewDidLoad() { super.viewDidLoad() bTtn.accessibilityLabel = "Big on top" sBtn.accessibilityLabel = "Small on top" // 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. } */ }